diff --git a/LEGAL.md b/LEGAL.md deleted file mode 100644 index dfc3285..0000000 --- a/LEGAL.md +++ /dev/null @@ -1,7 +0,0 @@ -Legal Disclaimer - -Within this source code, the comments in Chinese shall be the original, governing version. Any comment in other languages are for reference only. In the event of any conflict between the Chinese language version comments and other language version comments, the Chinese language version shall prevail. - -法律免责声明 - -关于代码注释部分,中文注释为官方版本,其它语言注释仅做参考。中文注释可能与其它语言注释存在不一致,当中文注释与其它语言注释存在不一致时,请以中文注释为准。 diff --git a/ir_cli/src/vm/mod.rs b/ir_cli/src/vm/mod.rs index 77099ad..c4937e3 100644 --- a/ir_cli/src/vm/mod.rs +++ b/ir_cli/src/vm/mod.rs @@ -388,17 +388,17 @@ impl Externals for MockRuntime { }; self.events.push(event.clone()); - // 如果 log name 是 MyCoverage, 则导出log内容 + // If the log name is MyCoverage, export the log content. let my_coverage_event_name = "MyCoverage"; let first_topic = event.topics[0].clone(); - // 第一个字节是event字符串长度 + // The first byte is the length of the event string. if String::from_utf8(first_topic[1..].to_vec()).unwrap() == *my_coverage_event_name { let file_name = "out.mygcna"; let mut file = File::create(file_name).expect("mygcna coverage file create failed"); - // desc_o 是datastream编码后的长度,头部需要读取leb128长度 + // `desc_o` is the length encoded by the data stream, and the header needs to read the length of leb128. let coverage_file_bytes = match nano_leb128::SLEB128::read_from(&desc_o) { Ok((_, len_bytes_len)) => &desc_o[len_bytes_len..], Err(_) => unreachable!(