doc: be more clear/explicit that we got String type
This commit is contained in:
parent
474c6e0ae4
commit
aabff227d2
@ -30,7 +30,7 @@
|
|||||||
//! You can get a non-`'static` `&str` by taking a slice of a `String`:
|
//! 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;
|
//! let s = &some_string;
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
Loading…
Reference in New Issue
Block a user