Fixed reserve_exact example

The same example for ``reverse`` were in the ``reserve_exact``'s example.
This commit is contained in:
Mário Feroldi 2015-05-16 20:59:20 -03:00
parent 0d707d15f6
commit ce8fb6c6c6

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]