Skip to content

Commit

Permalink
Fix typo in documentation of Cursor::punct
Browse files Browse the repository at this point in the history
"An Punct" here is left over from when Punct used to be named "an Op".
a74a1c8
  • Loading branch information
dtolnay committed Dec 26, 2021
1 parent 8e59a55 commit 31250c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl<'a> Cursor<'a> {
}
}

/// If the cursor is pointing at an `Punct`, returns it along with a cursor
/// If the cursor is pointing at a `Punct`, returns it along with a cursor
/// pointing at the next `TokenTree`.
pub fn punct(mut self) -> Option<(Punct, Cursor<'a>)> {
self.ignore_none();
Expand Down

0 comments on commit 31250c2

Please sign in to comment.