Rollup merge of #25510 - thelostt:patch-1, r=alexcrichton

The same example for ``reverse`` were in the ``reserve_exact``'s example.
This commit is contained in:
Manish Goregaokar 2015-05-17 11:55:40 +05:30
commit 8fa94747e4

View File

@ -433,7 +433,7 @@ impl String {
///
/// ```
/// let mut s = String::new();
/// s.reserve(10);
/// s.reserve_exact(10);
/// assert!(s.capacity() >= 10);
/// ```
#[inline]