We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f628117 commit da74e86Copy full SHA for da74e86
src/libcollections/str.rs
@@ -11,10 +11,10 @@
11
//! Unicode string slices.
12
//!
13
//! The `&str` type is one of the two main string types, the other being `String`.
14
-//! Unlike its `String` counterpart, its contents are borrowed and therefore
15
-//! cannot be moved someplace else.
+//! Unlike its `String` counterpart, its contents are borrowed.
16
17
//! # Basic Usage
+//!
18
//! A basic string declaration of `&str` type:
19
20
//! ```
@@ -27,7 +27,7 @@
27
//! We can explicitly specify `hello_world`'s lifetime as well:
28
29
30
-//! let hello_world:&'static str = "Hello, world!";
+//! let hello_world: &'static str = "Hello, world!";
31
32
33
//! *[See also the `str` primitive type](../../std/primitive.str.html).*
0 commit comments