Skip to content

Commit

Permalink
Stabilize OsString::shrink_to_fit
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler authored and alexcrichton committed Jul 13, 2017
1 parent d0f7613 commit 527e718
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libstd/ffi/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,6 @@ impl OsString {
/// # Examples
///
/// ```
/// #![feature(osstring_shrink_to_fit)]
///
/// use std::ffi::OsString;
///
/// let mut s = OsString::from("foo");
Expand All @@ -242,7 +240,7 @@ impl OsString {
/// s.shrink_to_fit();
/// assert_eq!(3, s.capacity());
/// ```
#[unstable(feature = "osstring_shrink_to_fit", issue = "40421")]
#[stable(feature = "osstring_shrink_to_fit", since = "1.19.0")]
pub fn shrink_to_fit(&mut self) {
self.inner.shrink_to_fit()
}
Expand Down

0 comments on commit 527e718

Please sign in to comment.