fix: typo

This commit is contained in:
David 2022-10-10 09:35:02 +08:00
parent f59b676674
commit 2aeb33e3fd
3 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
*/target */target
**/*.rs.bk **/*.rs.bk
Cargo.lock Cargo.lock
.idea
.vscode

View File

@ -17,7 +17,7 @@ fn main() {
let result = parse_sv(&path, &defines, &includes, false, false); let result = parse_sv(&path, &defines, &includes, false, false);
if let Ok((syntax_tree, _)) = result { if let Ok((syntax_tree, _)) = result {
// &SyntexTree is iterable // &SyntaxTree is iterable
for node in &syntax_tree { for node in &syntax_tree {
// The type of each node is RefNode // The type of each node is RefNode
match node { match node {

View File

@ -93,7 +93,7 @@ fn main() {
print_parse_error(&origin_path, &origin_pos); print_parse_error(&origin_path, &origin_pos);
} }
x => { x => {
println!("parse failed: {:?} ({})", path, x); println!("parse failed: {:?} ({:?})", path, x);
let mut err = x.source(); let mut err = x.source();
while let Some(x) = err { while let Some(x) = err {
println!(" Caused by {}", x); println!(" Caused by {}", x);