diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-06 16:30:05 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-06 16:30:05 +0800 |
| commit | 2176a912668409a5a571c47a9937fe07ba6280ce (patch) | |
| tree | fc1b522e9585702468faadd2167fcc290cfc0b60 /mingling_cli/src/diagnostic.rs | |
| parent | 08e804e75478953aa656064ac25903858bf5ef64 (diff) | |
feat(diagnostic): translate doc comment to English
Diffstat (limited to 'mingling_cli/src/diagnostic.rs')
| -rw-r--r-- | mingling_cli/src/diagnostic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling_cli/src/diagnostic.rs b/mingling_cli/src/diagnostic.rs index 527e879..807cdf3 100644 --- a/mingling_cli/src/diagnostic.rs +++ b/mingling_cli/src/diagnostic.rs @@ -26,7 +26,7 @@ fn cargo_level_to_annotate( } } -/// 把 1-based char offset 转成 0-based byte offset +/// Convert 1-based char offset to 0-based byte offset fn char_offset_to_byte_offset(s: &str, char_offset: usize) -> usize { s.char_indices() .nth(char_offset.saturating_sub(1)) |
