We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2887008 + 1fa50b3 commit b35aeaeCopy full SHA for b35aeae
src/libcore/option.rs
@@ -725,8 +725,6 @@ impl<T> Option<T> {
725
/// # Examples
726
///
727
/// ```
728
- /// #![feature(option_xor)]
729
- ///
730
/// let x = Some(2);
731
/// let y: Option<u32> = None;
732
/// assert_eq!(x.xor(y), Some(2));
@@ -744,7 +742,7 @@ impl<T> Option<T> {
744
742
/// assert_eq!(x.xor(y), None);
745
743
746
#[inline]
747
- #[unstable(feature = "option_xor", issue = "50512")]
+ #[stable(feature = "option_xor", since = "1.37.0")]
748
pub fn xor(self, optb: Option<T>) -> Option<T> {
749
match (self, optb) {
750
(Some(a), None) => Some(a),
0 commit comments