diff --git a/18/main.go b/18/main.go index e5e9054..fa57d50 100644 --- a/18/main.go +++ b/18/main.go @@ -109,9 +109,7 @@ func printExpression(e expression) string { return strings.TrimSpace(result) } -// evaluation starts at the root, checks the list of operators, -// then descends into the expressions as precedence demands apply operators to expressions. - +// evaluation starts at the root then descends into the sub-expressions. func evalLeftToRight(e expression) int { var result int if e.number != 0 {