about summary refs log tree commit diff
path: root/src/libcollections/string.rs
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-09-30 13:44:46 -0400
committerGitHub <noreply@github.com>2016-09-30 13:44:46 -0400
commitcabfa9919951ac31fcec2d3f6291438ff8c40cd0 (patch)
tree61233e035514494b8ebd446a89ebf5ffd7618fb5 /src/libcollections/string.rs
parent71a4bde9e97dbb142606b906a6707da14ed328e8 (diff)
parent323701e3458fc6a509e518098a163db72dfc1faf (diff)
downloadrust-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.rs6
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()`.