From 2aeb33e3fd1462829b1b59bb188adde04a09f211 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 10 Oct 2022 09:35:02 +0800 Subject: [PATCH] fix: typo --- .gitignore | 2 ++ sv-parser/examples/module_list.rs | 2 +- sv-parser/examples/parse_sv.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c4448c4..3ac0c87 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ */target **/*.rs.bk Cargo.lock +.idea +.vscode diff --git a/sv-parser/examples/module_list.rs b/sv-parser/examples/module_list.rs index dce7864..57bf1aa 100644 --- a/sv-parser/examples/module_list.rs +++ b/sv-parser/examples/module_list.rs @@ -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 { diff --git a/sv-parser/examples/parse_sv.rs b/sv-parser/examples/parse_sv.rs index c140ace..7453e98 100644 --- a/sv-parser/examples/parse_sv.rs +++ b/sv-parser/examples/parse_sv.rs @@ -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);