diff options
| author | Mário Feroldi <thelost-t@live.com> | 2015-05-16 20:59:20 -0300 |
|---|---|---|
| committer | Mário Feroldi <thelost-t@live.com> | 2015-05-16 20:59:20 -0300 |
| commit | ce8fb6c6c654c9b049215b8ec619e0418e0372c8 (patch) | |
| tree | 522e02340b8df9079a169a47429f033d546c479d | |
| parent | 0d707d15f6ee4bef23cca36ce5f98aaf0ca707f9 (diff) | |
| download | rust-ce8fb6c6c654c9b049215b8ec619e0418e0372c8.tar.gz rust-ce8fb6c6c654c9b049215b8ec619e0418e0372c8.zip | |
Fixed reserve_exact example
The same example for ``reverse`` were in the ``reserve_exact``'s example.
| -rw-r--r-- | src/libcollections/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 28e47674291..1f2443d9771 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -433,7 +433,7 @@ impl String { /// /// ``` /// let mut s = String::new(); - /// s.reserve(10); + /// s.reserve_exact(10); /// assert!(s.capacity() >= 10); /// ``` #[inline] |
