mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +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 a new issue