mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Auto merge of #25907 - tshepang:patch-8, r=Gankro
This commit is contained in:
commit
16d037866d
@ -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;
|
||||
//! ```
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user