We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05cbdb1 commit ea4fb8eCopy full SHA for ea4fb8e
src/libstd/ffi/os_str.rs
@@ -230,8 +230,6 @@ impl OsString {
230
/// # Examples
231
///
232
/// ```
233
- /// #![feature(osstring_shrink_to_fit)]
234
- ///
235
/// use std::ffi::OsString;
236
237
/// let mut s = OsString::from("foo");
@@ -242,7 +240,7 @@ impl OsString {
242
240
/// s.shrink_to_fit();
243
241
/// assert_eq!(3, s.capacity());
244
245
- #[unstable(feature = "osstring_shrink_to_fit", issue = "40421")]
+ #[stable(feature = "osstring_shrink_to_fit", since = "1.19.0")]
246
pub fn shrink_to_fit(&mut self) {
247
self.inner.shrink_to_fit()
248
}
0 commit comments