mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-14 21:25:58 +00:00
[rust/en] fix typo (#5225)
This commit is contained in:
parent
0a8c4bf7e8
commit
a556cdedce
2
rust.md
2
rust.md
@ -89,7 +89,7 @@ fn main() {
|
|||||||
let x: &str = "hello world!";
|
let x: &str = "hello world!";
|
||||||
|
|
||||||
// Printing
|
// Printing
|
||||||
println!("{} {}", f, x); // 1.3 hello world
|
println!("{} {}", f, x); // 1.3 hello world!
|
||||||
|
|
||||||
// A `String` – a heap-allocated string
|
// A `String` – a heap-allocated string
|
||||||
// Stored as a `Vec<u8>` and always holds a valid UTF-8 sequence,
|
// Stored as a `Vec<u8>` and always holds a valid UTF-8 sequence,
|
||||||
|
Loading…
Reference in New Issue
Block a user