Skip to content

Commit ea4fb8e

Browse files
committedJun 25, 2017
Stabilize OsString::shrink_to_fit
Closes #40421
1 parent 05cbdb1 commit ea4fb8e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/libstd/ffi/os_str.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ impl OsString {
230230
/// # Examples
231231
///
232232
/// ```
233-
/// #![feature(osstring_shrink_to_fit)]
234-
///
235233
/// use std::ffi::OsString;
236234
///
237235
/// let mut s = OsString::from("foo");
@@ -242,7 +240,7 @@ impl OsString {
242240
/// s.shrink_to_fit();
243241
/// assert_eq!(3, s.capacity());
244242
/// ```
245-
#[unstable(feature = "osstring_shrink_to_fit", issue = "40421")]
243+
#[stable(feature = "osstring_shrink_to_fit", since = "1.19.0")]
246244
pub fn shrink_to_fit(&mut self) {
247245
self.inner.shrink_to_fit()
248246
}

0 commit comments

Comments
 (0)
Please sign in to comment.