diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-05-30 21:21:56 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-05-30 21:21:56 +0200 |
| commit | aabff227d21b9b64afbf92bebeb25d189c51c375 (patch) | |
| tree | c8edd95a85f09638d42c084a59f19722ece2b267 | |
| parent | 474c6e0ae47578b3e608c893e18bc83798b565aa (diff) | |
doc: be more clear/explicit that we got String type
| -rw-r--r-- | src/libcollections/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; //! ``` //! |
