Replace interface{} with any

This commit is contained in:
Anton Medvedev
2023-08-30 11:25:15 +02:00
parent 688b914fa6
commit 32f5fde2eb
44 changed files with 469 additions and 469 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ func (l *lexer) acceptWord(word string) bool {
return true
}
func (l *lexer) error(format string, args ...interface{}) stateFn {
func (l *lexer) error(format string, args ...any) stateFn {
if l.err == nil { // show first error
l.err = &file.Error{
Location: l.loc,
+2 -2
View File
@@ -81,11 +81,11 @@ func ParseWithConfig(input string, config *conf.Config) (*Tree, error) {
}, nil
}
func (p *parser) error(format string, args ...interface{}) {
func (p *parser) error(format string, args ...any) {
p.errorAt(p.current, format, args...)
}
func (p *parser) errorAt(token Token, format string, args ...interface{}) {
func (p *parser) errorAt(token Token, format string, args ...any) {
if p.err == nil { // show first error
p.err = &file.Error{
Location: token.Location,