Improved code quality

This commit is contained in:
2025-02-20 16:55:17 +01:00
parent 9779476fe7
commit 36d0142573
12 changed files with 51 additions and 37 deletions

View File

@ -1,7 +1,7 @@
package asm
import (
"fmt"
"strconv"
)
// Number operates with just a number.
@ -11,7 +11,7 @@ type Number struct {
// String returns a human readable version.
func (data *Number) String() string {
return fmt.Sprintf("%d", data.Number)
return strconv.Itoa(data.Number)
}
// Number adds an instruction with a number.