Skip to content

Commit

Permalink
Rollup merge of rust-lang#25510 - thelostt:patch-1, r=alexcrichton
Browse files Browse the repository at this point in the history
The same example for ``reverse`` were in the ``reserve_exact``'s example.
  • Loading branch information
Manishearth committed May 17, 2015
2 parents 4e12a92 + ce8fb6c commit 8fa9474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ impl String {
///
/// ```
/// let mut s = String::new();
/// s.reserve(10);
/// s.reserve_exact(10);
/// assert!(s.capacity() >= 10);
/// ```
#[inline]
Expand Down

0 comments on commit 8fa9474

Please sign in to comment.