diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-09-30 13:44:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-30 13:44:46 -0400 |
| commit | cabfa9919951ac31fcec2d3f6291438ff8c40cd0 (patch) | |
| tree | 61233e035514494b8ebd446a89ebf5ffd7618fb5 /src/libcollections/string.rs | |
| parent | 71a4bde9e97dbb142606b906a6707da14ed328e8 (diff) | |
| parent | 323701e3458fc6a509e518098a163db72dfc1faf (diff) | |
| download | rust-cabfa9919951ac31fcec2d3f6291438ff8c40cd0.tar.gz rust-cabfa9919951ac31fcec2d3f6291438ff8c40cd0.zip | |
Rollup merge of #36623 - GuillaumeGomez:doc_typos, r=steveklabnik
Fix some typos and improve doc comments style r? @steveklabnik
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index e4930ae3572..119828ea43c 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -21,7 +21,7 @@ //! //! There are multiple ways to create a new `String` from a string literal: //! -//! ```rust +//! ``` //! let s = "Hello".to_string(); //! //! let s = String::from("world"); @@ -31,7 +31,7 @@ //! You can create a new `String` from an existing one by concatenating with //! `+`: //! -//! ```rust +//! ``` //! let s = "Hello".to_string(); //! //! let message = s + " world!"; @@ -40,7 +40,7 @@ //! If you have a vector of valid UTF-8 bytes, you can make a `String` out of //! it. You can do the reverse too. //! -//! ```rust +//! ``` //! let sparkle_heart = vec![240, 159, 146, 150]; //! //! // We know these bytes are valid, so we'll use `unwrap()`. |
