fix: typo
This commit is contained in:
parent
f59b676674
commit
2aeb33e3fd
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
||||
*/target
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
.idea
|
||||
.vscode
|
||||
|
@ -17,7 +17,7 @@ fn main() {
|
||||
let result = parse_sv(&path, &defines, &includes, false, false);
|
||||
|
||||
if let Ok((syntax_tree, _)) = result {
|
||||
// &SyntexTree is iterable
|
||||
// &SyntaxTree is iterable
|
||||
for node in &syntax_tree {
|
||||
// The type of each node is RefNode
|
||||
match node {
|
||||
|
@ -93,7 +93,7 @@ fn main() {
|
||||
print_parse_error(&origin_path, &origin_pos);
|
||||
}
|
||||
x => {
|
||||
println!("parse failed: {:?} ({})", path, x);
|
||||
println!("parse failed: {:?} ({:?})", path, x);
|
||||
let mut err = x.source();
|
||||
while let Some(x) = err {
|
||||
println!(" Caused by {}", x);
|
||||
|
Loading…
x
Reference in New Issue
Block a user