diff options
author | Aleksey Kladov <[email protected]> | 2018-08-05 16:18:02 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-05 16:18:02 +0100 |
commit | d44169ab1e2897a90f8aa7d7672d2fe318cceb27 (patch) | |
tree | d8e52bfeeda6fcd3d2cbc0624c4f188449c32543 /src/grammar/types.rs | |
parent | 720861bcff4b9f67ca4def66e2996015811fa90b (diff) |
ampersand -> amp
Diffstat (limited to 'src/grammar/types.rs')
-rw-r--r-- | src/grammar/types.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
6 | EXCL => never_type(p), | 6 | EXCL => never_type(p), |
7 | STAR => pointer_type(p), | 7 | STAR => pointer_type(p), |
8 | L_BRACK => array_or_slice_type(p), | 8 | L_BRACK => array_or_slice_type(p), |
9 | AMPERSAND => reference_type(p), | 9 | AMP => reference_type(p), |
10 | UNDERSCORE => placeholder_type(p), | 10 | UNDERSCORE => placeholder_type(p), |
11 | FN_KW | UNSAFE_KW | EXTERN_KW => fn_pointer_type(p), | 11 | FN_KW | UNSAFE_KW | EXTERN_KW => fn_pointer_type(p), |
12 | FOR_KW => for_type(p), | 12 | FOR_KW => for_type(p), |
@@ -130,7 +130,7 @@ fn array_or_slice_type(p: &mut Parser) { | |||
130 | // type B = &'static (); | 130 | // type B = &'static (); |
131 | // type C = &mut (); | 131 | // type C = &mut (); |
132 | fn reference_type(p: &mut Parser) { | 132 | fn reference_type(p: &mut Parser) { |
133 | assert!(p.at(AMPERSAND)); | 133 | assert!(p.at(AMP)); |
134 | let m = p.start(); | 134 | let m = p.start(); |
135 | p.bump(); | 135 | p.bump(); |
136 | p.eat(LIFETIME); | 136 | p.eat(LIFETIME); |