diff options
| author | Tomasz Różański <rosto@tlen.pl> | 2019-08-22 19:27:16 +0200 |
|---|---|---|
| committer | Tomasz Różański <rosto@tlen.pl> | 2019-08-22 19:27:16 +0200 |
| commit | d9f3258186cc221b41d2d869671d47fd4b716bbe (patch) | |
| tree | 22aeeca250b7fceea203824909542a3816815bf4 /src/libstd | |
| parent | eae5d77995488ffc316a7ff8344c4eaa81d67932 (diff) | |
| download | rust-d9f3258186cc221b41d2d869671d47fd4b716bbe.tar.gz rust-d9f3258186cc221b41d2d869671d47fd4b716bbe.zip | |
Fix for 7e13679.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ffi/os_str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs index d0e35cce641..6cf062d4f30 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -191,7 +191,7 @@ impl OsString { /// ``` /// use std::ffi::OsString; /// - /// let os_string = OsString::with_capacity(10); + /// let mut os_string = OsString::with_capacity(10); /// let capacity = os_string.capacity(); /// /// // This push is done without reallocating @@ -233,7 +233,7 @@ impl OsString { /// ``` /// use std::ffi::OsString; /// - /// let mut os_string = OsString::with_capacity(10); + /// let os_string = OsString::with_capacity(10); /// assert!(os_string.capacity() >= 10); /// ``` #[stable(feature = "osstring_simple_functions", since = "1.9.0")] |
