Skip to content

Commit ce8fb6c

Browse files
author
Mário Feroldi
committed
Fixed reserve_exact example
The same example for ``reverse`` were in the ``reserve_exact``'s example.
1 parent 0d707d1 commit ce8fb6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ impl String {
433433
///
434434
/// ```
435435
/// let mut s = String::new();
436-
/// s.reserve(10);
436+
/// s.reserve_exact(10);
437437
/// assert!(s.capacity() >= 10);
438438
/// ```
439439
#[inline]

0 commit comments

Comments
 (0)