doc: be more clear/explicit that we got String type

This commit is contained in:
Tshepang Lekhonkhobe 2015-05-30 21:21:56 +02:00
parent 474c6e0ae4
commit aabff227d2

View File

@ -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;
//! ```
//!