Commit 7e58d02 1 parent a0f0bb3 commit 7e58d02 Copy full SHA for 7e58d02
File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ use std::cell::RefCell;
18
18
/// [`ParseStream::peek`]: crate::parse::ParseBuffer::peek
19
19
/// [`ParseStream::lookahead1`]: crate::parse::ParseBuffer::lookahead1
20
20
///
21
+ /// Please be aware that advancing the source stream with parse() will not advance
22
+ /// the lookahead object.
23
+ ///
21
24
/// # Example
22
25
///
23
26
/// ```
@@ -136,7 +139,7 @@ impl<'a> Lookahead1<'a> {
136
139
/// Types that can be parsed by looking at just one token.
137
140
///
138
141
/// Use [`ParseStream::peek`] to peek one of these types in a parse stream
139
- /// without consuming it from the stream.
142
+ /// without consuming it from the stream.
140
143
///
141
144
/// This trait is sealed and cannot be implemented for types outside of Syn.
142
145
///
You can’t perform that action at this time.
0 commit comments