注释的“中”修改为“世”

This commit is contained in:
chenren 2023-02-03 20:26:08 +08:00
parent af2a2a6b3b
commit 7df0d84d15
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ fn main() {
let slice1 = s[0]; //提示: `h` 在 UTF-8 编码中只占用 1 个字节
assert_eq!(slice1, "h");
let slice2 = &s[3..5];// 提示: `` 在 UTF-8 编码中占用 3 个字节
let slice2 = &s[3..5];// 提示: `` 在 UTF-8 编码中占用 3 个字节
assert_eq!(slice2, "世");
// 迭代 s 中的所有字符