summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/mod.rs')
-rw-r--r--src/syntax/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs
index eb070a04..c2b06efe 100644
--- a/src/syntax/mod.rs
+++ b/src/syntax/mod.rs
@@ -980,7 +980,7 @@ impl NodeKind {
Self::LineComment => "line comment",
Self::BlockComment => "block comment",
Self::Error(_, _) => "parse error",
- Self::Unknown(src) => match src.as_str() {
+ Self::Unknown(text) => match text.as_str() {
"*/" => "end of block comment",
_ => "invalid token",
},
@@ -1107,7 +1107,7 @@ impl Hash for NodeKind {
Self::LineComment => {}
Self::BlockComment => {}
Self::Error(pos, msg) => (pos, msg).hash(state),
- Self::Unknown(src) => src.hash(state),
+ Self::Unknown(text) => text.hash(state),
}
}
}