Skip to content

Commit

Permalink
Bump the Option::replace stabilize version to 1.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Oct 8, 2018
1 parent 8c01c22 commit c232ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ impl<T> Option<T> {
/// assert_eq!(old, None);
/// ```
#[inline]
#[stable(feature = "option_replace", since = "1.30.0")]
#[stable(feature = "option_replace", since = "1.31.0")]
pub fn replace(&mut self, value: T) -> Option<T> {
mem::replace(self, Some(value))
}
Expand Down

0 comments on commit c232ea1

Please sign in to comment.