Updated documentation
This commit is contained in:
parent
cf1ed9948f
commit
65b74046e1
6 changed files with 58 additions and 44 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
// CreateLabel creates a label that is tied to this function by using a suffix.
|
||||
func (f *Function) CreateLabel(prefix string, count uint16) string {
|
||||
func (f *Function) CreateLabel(prefix string, count counter) string {
|
||||
tmp := strings.Builder{}
|
||||
tmp.WriteString(prefix)
|
||||
tmp.WriteString(" ")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package core
|
||||
|
||||
type counter = uint16
|
||||
type counter = uint8
|
||||
|
||||
// count stores how often a certain statement appeared so we can generate a unique label from it.
|
||||
type count struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue