Fixed reserve_exact example
The same example for ``reverse`` were in the ``reserve_exact``'s example.
This commit is contained in:
parent
0d707d15f6
commit
ce8fb6c6c6
@ -433,7 +433,7 @@ impl String {
|
||||
///
|
||||
/// ```
|
||||
/// let mut s = String::new();
|
||||
/// s.reserve(10);
|
||||
/// s.reserve_exact(10);
|
||||
/// assert!(s.capacity() >= 10);
|
||||
/// ```
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user