Skip to content

Commit

Permalink
Use the correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed May 14, 2022
1 parent 6247779 commit c8772a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func infixToRPN(input string) ([]string, error) {
}

if oper == "(" {
return nil, errors.New("mismatched parenthesis")
return nil, errMismatchedParenthesis
}

output.Enqueue(oper)
Expand Down

0 comments on commit c8772a4

Please sign in to comment.