From d44169ab1e2897a90f8aa7d7672d2fe318cceb27 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 5 Aug 2018 18:18:02 +0300 Subject: ampersand -> amp --- src/grammar/patterns.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/grammar/patterns.rs') diff --git a/src/grammar/patterns.rs b/src/grammar/patterns.rs index 770274686..d67f180fa 100644 --- a/src/grammar/patterns.rs +++ b/src/grammar/patterns.rs @@ -15,7 +15,7 @@ pub(super) fn pattern(p: &mut Parser) { match la0 { UNDERSCORE => placeholder_pat(p), - AMPERSAND => ref_pat(p), + AMP => ref_pat(p), _ => p.err_and_bump("expected pattern"), } } @@ -108,7 +108,7 @@ fn placeholder_pat(p: &mut Parser) { // let &mut b = (); // } fn ref_pat(p: &mut Parser) { - assert!(p.at(AMPERSAND)); + assert!(p.at(AMP)); let m = p.start(); p.bump(); p.eat(MUT_KW); -- cgit v1.2.3