Skip to content

Commit 3980ff2

Browse files
committed
Improve wording of comment in advance_to implementation
The thing that this comment is talking about is called propagate in the preceding comment.
1 parent 8328b52 commit 3980ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/discouraged.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ impl<'a> Speculative for ParseBuffer<'a> {
183183
fork_unexp.set(Unexpected::Chain(self_unexp));
184184

185185
// Ensure toplevel 'unexpected' tokens from the fork don't
186-
// bubble up the chain by replacing the root `unexpected`
186+
// propagate up the chain by replacing the root `unexpected`
187187
// pointer, only 'unexpected' tokens from existing group
188-
// parsers should bubble.
188+
// parsers should propagate.
189189
fork.unexpected
190190
.set(Some(Rc::new(Cell::new(Unexpected::None))));
191191
}

0 commit comments

Comments
 (0)