Skip to content

Commit 726b514

Browse files
committed
Improve comments of regression test for GitHub question.
1 parent c4118c1 commit 726b514

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/regression_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -805,12 +805,12 @@ void main() {
805805
.callCC<String>((continuation, context) {
806806
// Parse the original choice parser (zero or one).
807807
final result = continuation(context);
808-
// If this is a success and the result is '0', build a new parser
809-
// and continue with that:
808+
// If this is a success and the result is '0', create a new parser
809+
// and follow up with it after the original choice parser.
810810
if (result case Success(value: '0')) {
811811
return '1'.toParser().parseOn(result);
812812
}
813-
// Otherwise just return the result of the original choice parser.
813+
// Otherwise return the result of the original choice parser.
814814
return result;
815815
})
816816
.star()

0 commit comments

Comments
 (0)