Skip to content

Commit

Permalink
Fixed reserve_exact example
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
Mário Feroldi committed May 16, 2015
1 parent 0d707d1 commit ce8fb6c
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 ce8fb6c

Please sign in to comment.