Skip to content

Commit

Permalink
Fix code references in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Sep 29, 2019
1 parent afc9a82 commit e5cf746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions petitparser/lib/src/core/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ abstract class Parser<T> implements Pattern {
/// the internal parsing logic of the receiving parser.
///
/// For example, `letter().plus().parse('abc')` results in an instance of
/// [Success], where [Result.position] is `3` and [Success.value] is
/// [Success], where [Context.position] is `3` and [Success.value] is
/// `[a, b, c]`.
///
/// Similarly, `letter().plus().parse('123')` results in an instance of
/// [Failure], where [Result.position] is `0` and [Failure.message] is
/// [Failure], where [Context.position] is `0` and [Failure.message] is
/// ['letter expected'].
Result<T> parse(String input) => parseOn(Context(input, 0));

Expand Down

0 comments on commit e5cf746

Please sign in to comment.