mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
Fix for 7e13679
.
This commit is contained in:
parent
eae5d77995
commit
d9f3258186
@ -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…
Reference in New Issue
Block a user