Skip to content

Commit a47be17

Browse files
committed
Update a comment
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
1 parent b12a37d commit a47be17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/org/opensearch/sql/common/antlr/SyntaxAnalysisErrorListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* information.
1717
*/
1818
public class SyntaxAnalysisErrorListener extends BaseErrorListener {
19-
// Show the up to this many characters before the offending token in the query.
19+
// Show up to this many characters before the offending token in the query.
2020
private static final int CONTEXT_TRUNCATION_THRESHOLD = 20;
2121
// Avoid presenting too many alternatives when many are available.
2222
private static final int SUGGESTION_TRUNCATION_THRESHOLD = 5;
@@ -57,7 +57,7 @@ private String truncateQueryAtOffendingToken(String query, Token offendingToken)
5757

5858
private String getDetails(Recognizer<?, ?> recognizer, String msg, RecognitionException e) {
5959
if (e == null) {
60-
// As official ANTLR says, e=null means parser was able to recover from the error.
60+
// According to the ANTLR docs, e == null means the parser was able to recover from the error.
6161
// In such cases, `msg` includes the raw error information we care about.
6262
return msg;
6363
}

0 commit comments

Comments
 (0)