Skip to content

Commit f628117

Browse files
committed
Fix Rust linting error
1 parent 6365272 commit f628117

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/libcollections/str.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010

1111
//! Unicode string slices.
1212
//!
13-
//! The `&str` type is one of the two main string types, the other being `String`. Unlike its `String` counterpart, its contents
14-
//! are borrowed and therefore cannot be moved someplace else.
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.
1516
//!
1617
//! # Basic Usage
1718
//! A basic string declaration of `&str` type:
@@ -22,8 +23,8 @@
2223
//!
2324
//! Here we have declared a string literal, also known as a string slice.
2425
//! String literals have a static lifetime, which means the string `hello_world`
25-
//! is guaranteed to be valid for the duration of the entire program. We can explicitly specify
26-
//! `hello_world`'s lifetime as well:
26+
//! is guaranteed to be valid for the duration of the entire program.
27+
//! We can explicitly specify `hello_world`'s lifetime as well:
2728
//!
2829
//! ```
2930
//! let hello_world:&'static str = "Hello, world!";

0 commit comments

Comments
 (0)