aboutsummaryrefslogtreecommitdiff
path: root/src/grammar/patterns.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-05 16:18:02 +0100
committerAleksey Kladov <[email protected]>2018-08-05 16:18:02 +0100
commitd44169ab1e2897a90f8aa7d7672d2fe318cceb27 (patch)
treed8e52bfeeda6fcd3d2cbc0624c4f188449c32543 /src/grammar/patterns.rs
parent720861bcff4b9f67ca4def66e2996015811fa90b (diff)
ampersand -> amp
Diffstat (limited to 'src/grammar/patterns.rs')
-rw-r--r--src/grammar/patterns.rs4
1 files changed, 2 insertions, 2 deletions
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) {
15 15
16 match la0 { 16 match la0 {
17 UNDERSCORE => placeholder_pat(p), 17 UNDERSCORE => placeholder_pat(p),
18 AMPERSAND => ref_pat(p), 18 AMP => ref_pat(p),
19 _ => p.err_and_bump("expected pattern"), 19 _ => p.err_and_bump("expected pattern"),
20 } 20 }
21} 21}
@@ -108,7 +108,7 @@ fn placeholder_pat(p: &mut Parser) {
108// let &mut b = (); 108// let &mut b = ();
109// } 109// }
110fn ref_pat(p: &mut Parser) { 110fn ref_pat(p: &mut Parser) {
111 assert!(p.at(AMPERSAND)); 111 assert!(p.at(AMP));
112 let m = p.start(); 112 let m = p.start();
113 p.bump(); 113 p.bump();
114 p.eat(MUT_KW); 114 p.eat(MUT_KW);