about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-02 11:14:08 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-02 11:14:08 +0530
commita85150b58aa33213ea3df746a980b1cbd690a612 (patch)
tree4eaeed259c83d09b8d06bf6509be6b3e75fcb5be
parent46ebed55a675f86552e72bef52a84c7e03c7bf4e (diff)
parent3af8e14cd13090d7630b40bf7515d228e3bd8fa9 (diff)
downloadrust-a85150b58aa33213ea3df746a980b1cbd690a612.tar.gz
rust-a85150b58aa33213ea3df746a980b1cbd690a612.zip
Rollup merge of #25936 - tshepang:patch-2, r=alexcrichton
-rw-r--r--src/libcollections/string.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index 7563bb76b52..c328a58f077 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -495,8 +495,7 @@ impl String {
     ///
     /// ```
     /// let s = String::from("hello");
-    /// let b: &[_] = &[104, 101, 108, 108, 111];
-    /// assert_eq!(s.as_bytes(), b);
+    /// assert_eq!(s.as_bytes(), [104, 101, 108, 108, 111]);
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]