Skip to content

Commit d9f3258

Browse files
Fix for 7e13679.
1 parent eae5d77 commit d9f3258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/ffi/os_str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl OsString {
191191
/// ```
192192
/// use std::ffi::OsString;
193193
///
194-
/// let os_string = OsString::with_capacity(10);
194+
/// let mut os_string = OsString::with_capacity(10);
195195
/// let capacity = os_string.capacity();
196196
///
197197
/// // This push is done without reallocating
@@ -233,7 +233,7 @@ impl OsString {
233233
/// ```
234234
/// use std::ffi::OsString;
235235
///
236-
/// let mut os_string = OsString::with_capacity(10);
236+
/// let os_string = OsString::with_capacity(10);
237237
/// assert!(os_string.capacity() >= 10);
238238
/// ```
239239
#[stable(feature = "osstring_simple_functions", since = "1.9.0")]

0 commit comments

Comments
 (0)