diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-04-05 12:44:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-05 12:44:25 -0400 |
| commit | 7412f701e8574c5006e4d5b7c5564a69854bf802 (patch) | |
| tree | 077d587d508053ada99cbc96ccdc5a47f12325ef /src/libcollections | |
| parent | 0239880ddef9fd09ec86e6a39df76babd5c54a3a (diff) | |
| parent | 1e2a61d4a6994c57cc8c8cd755734416e8117c45 (diff) | |
| download | rust-7412f701e8574c5006e4d5b7c5564a69854bf802.tar.gz rust-7412f701e8574c5006e4d5b7c5564a69854bf802.zip | |
Rollup merge of #40949 - stjepang:fix-vecdeque-docs, r=frewsxcv
Improve some docs for VecDeque r? @GuillaumeGomez
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/vec_deque.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libcollections/vec_deque.rs b/src/libcollections/vec_deque.rs index cb92236ec73..22f2ff1a346 100644 --- a/src/libcollections/vec_deque.rs +++ b/src/libcollections/vec_deque.rs @@ -635,7 +635,7 @@ impl<T> VecDeque<T> { } } - /// Shortens a `VecDeque`, dropping excess elements from the back. + /// Shortens the `VecDeque`, dropping excess elements from the back. /// /// If `len` is greater than the `VecDeque`'s current length, this has no /// effect. @@ -941,7 +941,7 @@ impl<T> VecDeque<T> { a.contains(x) || b.contains(x) } - /// Provides a reference to the front element, or `None` if the sequence is + /// Provides a reference to the front element, or `None` if the `VecDeque` is /// empty. /// /// # Examples @@ -966,7 +966,7 @@ impl<T> VecDeque<T> { } /// Provides a mutable reference to the front element, or `None` if the - /// sequence is empty. + /// `VecDeque` is empty. /// /// # Examples /// @@ -993,7 +993,7 @@ impl<T> VecDeque<T> { } } - /// Provides a reference to the back element, or `None` if the sequence is + /// Provides a reference to the back element, or `None` if the `VecDeque` is /// empty. /// /// # Examples @@ -1018,7 +1018,7 @@ impl<T> VecDeque<T> { } /// Provides a mutable reference to the back element, or `None` if the - /// sequence is empty. + /// `VecDeque` is empty. /// /// # Examples /// @@ -1046,7 +1046,7 @@ impl<T> VecDeque<T> { } } - /// Removes the first element and returns it, or `None` if the sequence is + /// Removes the first element and returns it, or `None` if the `VecDeque` is /// empty. /// /// # Examples @@ -1073,7 +1073,7 @@ impl<T> VecDeque<T> { } } - /// Inserts an element first in the sequence. + /// Prepends an element to the `VecDeque`. /// /// # Examples /// @@ -1096,7 +1096,7 @@ impl<T> VecDeque<T> { } } - /// Appends an element to the back of a buffer + /// Appends an element to the back of the `VecDeque`. /// /// # Examples /// @@ -1117,7 +1117,7 @@ impl<T> VecDeque<T> { unsafe { self.buffer_write(head, value) } } - /// Removes the last element from a buffer and returns it, or `None` if + /// Removes the last element from the `VecDeque` and returns it, or `None` if /// it is empty. /// /// # Examples |
