mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 19:24:32 -06:00
tweaks
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ This kind of string can be mutated:
|
||||
```rust
|
||||
let mut s = String::from("hello");
|
||||
|
||||
s = s + ", world!";
|
||||
s.push_str(", world!");
|
||||
```
|
||||
|
||||
## Memory and allocation
|
||||
|
||||
Reference in New Issue
Block a user