aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar')
-rw-r--r--crates/libsyntax2/src/grammar/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/libsyntax2/src/grammar/mod.rs b/crates/libsyntax2/src/grammar/mod.rs
index 46ba8a89a..496d28349 100644
--- a/crates/libsyntax2/src/grammar/mod.rs
+++ b/crates/libsyntax2/src/grammar/mod.rs
@@ -40,11 +40,11 @@ pub(crate) use self::{
40 items::named_field_def_list, 40 items::named_field_def_list,
41}; 41};
42 42
43pub(crate) fn file(p: &mut Parser) { 43pub(crate) fn root(p: &mut Parser) {
44 let file = p.start(); 44 let m = p.start();
45 p.eat(SHEBANG); 45 p.eat(SHEBANG);
46 items::mod_contents(p, false); 46 items::mod_contents(p, false);
47 file.complete(p, ROOT); 47 m.complete(p, ROOT);
48} 48}
49 49
50 50