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/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/grammar/types.rs') diff --git a/src/grammar/types.rs b/src/grammar/types.rs index 565037cb0..9e63c9b2a 100644 --- a/src/grammar/types.rs +++ b/src/grammar/types.rs @@ -6,7 +6,7 @@ pub(super) fn type_(p: &mut Parser) { EXCL => never_type(p), STAR => pointer_type(p), L_BRACK => array_or_slice_type(p), - AMPERSAND => reference_type(p), + AMP => reference_type(p), UNDERSCORE => placeholder_type(p), FN_KW | UNSAFE_KW | EXTERN_KW => fn_pointer_type(p), FOR_KW => for_type(p), @@ -130,7 +130,7 @@ fn array_or_slice_type(p: &mut Parser) { // type B = &'static (); // type C = &mut (); fn reference_type(p: &mut Parser) { - assert!(p.at(AMPERSAND)); + assert!(p.at(AMP)); let m = p.start(); p.bump(); p.eat(LIFETIME); -- cgit v1.2.3