chore: fix typo

pull/143/head
Kyosuke Takayama 2 years ago committed by GitHub
parent 2630af2a7e
commit 45c4aff8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1274,7 +1274,7 @@ That is why we need a &, because `&` makes a pointer, and Rust knows the size of
There are many ways to make a `String`. Here are some:
- `String::from("This is the string text");` This a method for String that takes text and creates a String.
- `String::from("This is the string text");` This is a method for String that takes text and creates a String.
- `"This is the string text".to_string()`. This is a method for &str that makes it a String.
- The `format!` macro. This is like `println!` except it creates a String instead of printing. So you can do this:

Loading…
Cancel
Save