Skip to content

Commit

Permalink
Merge pull request #1686 from dtolnay/isempty
Browse files Browse the repository at this point in the history
Reword explanation of ParseBuffer::is_empty
  • Loading branch information
dtolnay authored Jun 21, 2024
2 parents 33659c8 + 87d5792 commit 4b6c96a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,10 +743,12 @@ impl<'a> ParseBuffer<'a> {
Punctuated::parse_terminated_with(self, parser)
}

/// Returns whether there are tokens remaining in this stream.
/// Returns whether there are no more tokens remaining to be parsed from
/// this stream.
///
/// This method returns true at the end of the content of a set of
/// delimiters, as well as at the very end of the complete macro input.
/// This method returns true upon reaching the end of the content within a
/// set of delimiters, as well as at the end of the tokens provided to the
/// outermost parsing entry point.
///
/// # Example
///
Expand Down

0 comments on commit 4b6c96a

Please sign in to comment.