Skip to content

Commit 4b6c96a

Browse files
authored
Merge pull request #1686 from dtolnay/isempty
Reword explanation of ParseBuffer::is_empty
2 parents 33659c8 + 87d5792 commit 4b6c96a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/parse.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,12 @@ impl<'a> ParseBuffer<'a> {
743743
Punctuated::parse_terminated_with(self, parser)
744744
}
745745

746-
/// Returns whether there are tokens remaining in this stream.
746+
/// Returns whether there are no more tokens remaining to be parsed from
747+
/// this stream.
747748
///
748-
/// This method returns true at the end of the content of a set of
749-
/// delimiters, as well as at the very end of the complete macro input.
749+
/// This method returns true upon reaching the end of the content within a
750+
/// set of delimiters, as well as at the end of the tokens provided to the
751+
/// outermost parsing entry point.
750752
///
751753
/// # Example
752754
///

0 commit comments

Comments
 (0)