Merge pull request #361 from asuper0/fix_collections_string_4

注释的“中”修改为“世”
This commit is contained in:
Sunface 2023-02-13 10:47:37 +08:00 committed by GitHub
commit b97605e0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 中的所有字符