diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-03-11 21:11:40 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-03-11 21:11:40 -0400 |
| commit | 64ab111b5387e9985df188a970350c9e6c7f1451 (patch) | |
| tree | b53d97e99191c256cd0bcfd9c510652b454e8477 /src/liballoc | |
| parent | f899513a30165946a75ff7f515ab37a226e72172 (diff) | |
| download | rust-64ab111b5387e9985df188a970350c9e6c7f1451.tar.gz rust-64ab111b5387e9985df188a970350c9e6c7f1451.zip | |
Example -> Examples
This brings comments in line with https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#using-markdown
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/boxed.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/rc.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index dc1938cac1a..748eb9dcb2f 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -88,7 +88,7 @@ use heap::deallocate; /// An atomically reference counted wrapper for shared state. /// -/// # Example +/// # Examples /// /// In this example, a large vector of floats is shared between several tasks. /// With simple pipes, without `Arc`, a copy would have to be made for each diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 9351b110100..6d865d2bffa 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -133,7 +133,7 @@ impl<T : ?Sized> Box<T> { /// automatically managed that may lead to memory or other resource /// leak. /// -/// # Example +/// # Examples /// ``` /// use std::boxed; /// diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 763dcc7f256..115acd4a0ef 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -264,7 +264,7 @@ pub fn is_unique<T>(rc: &Rc<T>) -> bool { /// /// If the `Rc<T>` is not unique, an `Err` is returned with the same `Rc<T>`. /// -/// # Example +/// # Examples /// /// ``` /// use std::rc::{self, Rc}; @@ -298,7 +298,7 @@ pub fn try_unwrap<T>(rc: Rc<T>) -> Result<T, Rc<T>> { /// /// Returns `None` if the `Rc<T>` is not unique. /// -/// # Example +/// # Examples /// /// ``` /// use std::rc::{self, Rc}; |
