From aabff227d21b9b64afbf92bebeb25d189c51c375 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sat, 30 May 2015 21:21:56 +0200 Subject: [PATCH] doc: be more clear/explicit that we got String type --- src/libcollections/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; //! ``` //!