fix missing string-conversions
All checks were successful
/ test (push) Successful in 49s

This commit is contained in:
Neemek 2026-08-17 17:15:34 +02:00
parent 42fa039daf
commit 8d12c0bdf8
4 changed files with 17 additions and 3 deletions

View file

@ -96,6 +96,10 @@ func (n NodeType) String() string {
return "Index"
case RecordNodeType:
return "Record"
case ForNodeType:
return "For"
case IncludeNodeType:
return "Include"
}
return "Invalid Node Type"
}
@ -534,7 +538,7 @@ func (n ConditionalNode) String() string {
return fmt.Sprintf("if %s then %s", n.condition.String(), n.do.String())
}
return fmt.Sprintf("if %s then %s otheriwise %s", n.condition.String(), n.do.String(), n.otherwise.String())
return fmt.Sprintf("if %s then %s otherwise %s", n.condition.String(), n.do.String(), n.otherwise.String())
}
func (n ConditionalNode) Bounds() (Pos, Pos) {