Merge pull request #143 from ZiJiaW/patch-2

Update string-slice.md
pull/147/head
Sunface 3 years ago committed by GitHub
commit 11a8c7c623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -67,8 +67,8 @@ let s = String::from("hello");
let len = s.len(); let len = s.len();
let slice = &s[3..len]; let slice = &s[4..len];
let slice = &s[3..]; let slice = &s[4..];
``` ```
你也可以截取完整的`String`切片: 你也可以截取完整的`String`切片:

Loading…
Cancel
Save