diff --git a/ir_cli/README.md b/ir_cli/README.md index 9a94b5e..51ff22e 100644 --- a/ir_cli/README.md +++ b/ir_cli/README.md @@ -60,11 +60,11 @@ ir_cli sol2tensor $input_dir_absolute_path | ├- file2.json | └- ... └- output - ├- source_info -- infomation about contract + ├- source_info -- information about contract ├- standard_input -- solc compiler standard input json ├- standard_output -- solc compiler standard output json ├- yul -- yul src code ├- sir -- Smart IR └- tensor -- tensor data -``` \ No newline at end of file +``` diff --git a/smart_ir/src/ir/pass_manager.rs b/smart_ir/src/ir/pass_manager.rs index eab483c..41a0737 100644 --- a/smart_ir/src/ir/pass_manager.rs +++ b/smart_ir/src/ir/pass_manager.rs @@ -215,7 +215,7 @@ impl AnalysisManager { .downcast_rc::() .unwrap_or_else(|_| { panic!( - "cast analysis resulst to {} failed", + "cast analysis results to {} failed", std::any::type_name::() ) }) diff --git a/smart_ir/src/linker/wasm.rs b/smart_ir/src/linker/wasm.rs index ac51a9e..97ebda4 100644 --- a/smart_ir/src/linker/wasm.rs +++ b/smart_ir/src/linker/wasm.rs @@ -208,7 +208,7 @@ pub fn link( // remove empty initializers if let Some(data_section) = module.data_section_mut() { let _entries = data_section.entries_mut(); - // TODO: can't rm the entries directly when mulitple modules + // TODO: can't rm the entries directly when multiple modules // let mut index = 0; // while index < entries.len() { // if entries[index].value().iter().all(|b| *b == 0) { diff --git a/smart_ir/src/runtime/vm/mod.rs b/smart_ir/src/runtime/vm/mod.rs index 46c84d5..f74a943 100644 --- a/smart_ir/src/runtime/vm/mod.rs +++ b/smart_ir/src/runtime/vm/mod.rs @@ -65,7 +65,7 @@ impl VirtualMachine { }, code, addr, - op_addr: Address::from("opration address"), + op_addr: Address::from("operation address"), } } }