Fix for 7e13679.
This commit is contained in:
parent
eae5d77995
commit
d9f3258186
1 changed files with 2 additions and 2 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue