Skip to content

Commit

Permalink
Replace interface{} with any
Browse files Browse the repository at this point in the history
  • Loading branch information
meyermarcel committed Nov 29, 2024
1 parent a6ca7e0 commit 7ef9fdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func buildinfo() {

var processed = make(map[string]bool)

func done(file string, deps ...interface{}) bool {
func done(file string, deps ...any) bool {
fini := true
file = filepath.FromSlash(file)
info, err := os.Stat(file)
Expand Down
4 changes: 2 additions & 2 deletions tree/peg.go
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ func (t *Tree) Compile(file string, args []string, out io.Writer) (err error) {
}
}()

_print := func(format string, a ...interface{}) { _, _ = fmt.Fprintf(&buffer, format, a...) }
_print := func(format string, a ...any) { _, _ = fmt.Fprintf(&buffer, format, a...) }
printSave := func(n uint) { _print("\n position%d, tokenIndex%d := position, tokenIndex", n, n) }
printRestore := func(n uint) { _print("\n position, tokenIndex = position%d, tokenIndex%d", n, n) }
printMemoSave := func(rule int, n uint, ret bool) {
Expand Down Expand Up @@ -1601,7 +1601,7 @@ func (t *Tree) Compile(file string, args []string, out io.Writer) (err error) {
}

/* lets figure out which jump labels are going to be used with this dry compile */
printTemp, _print := _print, func(_ string, _ ...interface{}) {}
printTemp, _print := _print, func(_ string, _ ...any) {}
for _, element := range t.Slice() {
if element.GetType() != TypeRule {
continue
Expand Down

0 comments on commit 7ef9fdb

Please sign in to comment.