Updated documentation

This commit is contained in:
Eduard Urbach 2025-02-21 22:39:01 +01:00
parent cf1ed9948f
commit 65b74046e1
Signed by: eduard
GPG key ID: 49226B848C78F6C8
6 changed files with 58 additions and 44 deletions

View file

@ -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(" ")

View file

@ -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 {