We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae5d77 commit d9f3258Copy full SHA for d9f3258
src/libstd/ffi/os_str.rs
@@ -191,7 +191,7 @@ impl OsString {
191
/// ```
192
/// use std::ffi::OsString;
193
///
194
- /// let os_string = OsString::with_capacity(10);
+ /// let mut os_string = OsString::with_capacity(10);
195
/// let capacity = os_string.capacity();
196
197
/// // This push is done without reallocating
@@ -233,7 +233,7 @@ impl OsString {
233
234
235
236
- /// let mut os_string = OsString::with_capacity(10);
+ /// let os_string = OsString::with_capacity(10);
237
/// assert!(os_string.capacity() >= 10);
238
239
#[stable(feature = "osstring_simple_functions", since = "1.9.0")]
0 commit comments