diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index d9a45872489..ccfc6dc0f29 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -30,7 +30,7 @@ //! You can get a non-`'static` `&str` by taking a slice of a `String`: //! //! ``` -//! # let some_string = "Hello, world.".to_string(); +//! let some_string = "Hello, world.".to_string(); //! let s = &some_string; //! ``` //!