From 87d57920513951b05a4dd64a39d1d8a39c314624 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 20 Jun 2024 17:31:53 -0700 Subject: [PATCH] Reword explanation of ParseBuffer::is_empty --- src/parse.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/parse.rs b/src/parse.rs index a80a914760..9495c6fc02 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -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 ///