commit | b50c65a1c94e83463ab5a6cf59683d1c26116a2d | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Thu Aug 30 21:14:57 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Thu Aug 30 21:14:57 2018 -0700 |
tree | 90b848b57a4a602080d4d006966edbd61973e6fc | |
parent | 73b7ca1697c3758f3c2fa1813b37cf340434a6b7 [diff] [blame] |
Rename and make public ParseStream::step
diff --git a/src/group.rs b/src/group.rs index 1f46f2b..9c44b7a 100644 --- a/src/group.rs +++ b/src/group.rs
@@ -26,7 +26,7 @@ impl<'a> ParseBuffer<'a> { fn parse_delimited(&self, delimiter: Delimiter) -> Result<(Span, ParseBuffer<'a>)> { - self.step_cursor(|cursor| { + self.step(|cursor| { if let Some((content, span, rest)) = cursor.group(delimiter) { let content = ParseBuffer::new(span, cursor.advance(content), self.get_unexpected());