Skip to content

Commit

Permalink
Fix Rust linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
tigleym committed Mar 21, 2017
1 parent 6365272 commit f628117
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/libcollections/str.rs
Expand Up @@ -10,8 +10,9 @@

//! Unicode string slices.
//!
//! The `&str` type is one of the two main string types, the other being `String`. Unlike its `String` counterpart, its contents
//! are borrowed and therefore cannot be moved someplace else.
//! The `&str` type is one of the two main string types, the other being `String`.
//! Unlike its `String` counterpart, its contents are borrowed and therefore
//! cannot be moved someplace else.
//!
//! # Basic Usage
//! A basic string declaration of `&str` type:
Expand All @@ -22,8 +23,8 @@
//!
//! Here we have declared a string literal, also known as a string slice.
//! String literals have a static lifetime, which means the string `hello_world`
//! is guaranteed to be valid for the duration of the entire program. We can explicitly specify
//! `hello_world`'s lifetime as well:
//! is guaranteed to be valid for the duration of the entire program.
//! We can explicitly specify `hello_world`'s lifetime as well:
//!
//! ```
//! let hello_world:&'static str = "Hello, world!";
Expand Down

0 comments on commit f628117

Please sign in to comment.