Skip to content

Commit

Permalink
Use seek(0) instead of deprecated reset().
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Simons <[email protected]>
  • Loading branch information
michael-simons authored Jan 17, 2025
1 parent 811b7fd commit 093e6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/faq/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ try {
parser.stat(); // STAGE 1
}
catch (Exception ex) {
tokens.reset(); // rewind input stream
tokens.seek(0); // rewind input stream
parser.reset();
parser.getInterpreter().setPredictionMode(PredictionMode.LL);
parser.stat(); // STAGE 2
Expand Down

0 comments on commit 093e6b6

Please sign in to comment.