Avoid ref keyword in 2018 style docs
diff --git a/src/parse.rs b/src/parse.rs
index e651d15..c5786e7 100644
--- a/src/parse.rs
+++ b/src/parse.rs
@@ -305,8 +305,8 @@
/// input.step(|cursor| {
/// let mut rest = *cursor;
/// while let Some((tt, next)) = rest.token_tree() {
-/// match tt {
-/// TokenTree::Punct(ref punct) if punct.as_char() == '@' => {
+/// match &tt {
+/// TokenTree::Punct(punct) if punct.as_char() == '@' => {
/// return Ok(((), next));
/// }
/// _ => rest = next,
@@ -902,8 +902,8 @@
/// input.step(|cursor| {
/// let mut rest = *cursor;
/// while let Some((tt, next)) = rest.token_tree() {
- /// match tt {
- /// TokenTree::Punct(ref punct) if punct.as_char() == '@' => {
+ /// match &tt {
+ /// TokenTree::Punct(punct) if punct.as_char() == '@' => {
/// return Ok(((), next));
/// }
/// _ => rest = next,