mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 23:50:25 +08:00
lol
This commit is contained in:
parent
a47516a171
commit
c9a21c8e5d
@ -1,13 +1,18 @@
|
||||
# Strings
|
||||
|
||||
We've already talked about strings a bunch in chapter four, but let's take a
|
||||
more in-depth look at them now.
|
||||
|
||||
## creating
|
||||
|
||||
new, push_str, String::from and .to_string()
|
||||
|
||||
|
||||
new, String::from and .to_string()
|
||||
|
||||
## reading
|
||||
|
||||
slicing syntax, indexing
|
||||
|
||||
## updating
|
||||
|
||||
## implementaiton details
|
||||
|
||||
just like vecs with extra utf8 checks
|
||||
push_str, concatenation
|
||||
|
@ -10,6 +10,3 @@ new, insert
|
||||
|
||||
entry!
|
||||
|
||||
## implementaiton details
|
||||
|
||||
still growable, but doesn't work like vec does
|
||||
|
Loading…
Reference in New Issue
Block a user