Skip to content

Commit a03caec

Browse files
authored
Rollup merge of rust-lang#63108 - lzutao:option-xor-typo, r=jonas-schievink
Add links to None in Option doc r? @jonas-schievink
2 parents 3ef6f6d + c56d8a8 commit a03caec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/libcore/option.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! * Initial values
99
//! * Return values for functions that are not defined
1010
//! over their entire input range (partial functions)
11-
//! * Return value for otherwise reporting simple errors, where `None` is
11+
//! * Return value for otherwise reporting simple errors, where [`None`] is
1212
//! returned on error
1313
//! * Optional struct fields
1414
//! * Struct fields that can be loaned or "taken"
@@ -752,7 +752,7 @@ impl<T> Option<T> {
752752
}
753753
}
754754

755-
/// Returns [`Some`] if exactly one of `self`, `optb` is [`Some`], otherwise returns `None`.
755+
/// Returns [`Some`] if exactly one of `self`, `optb` is [`Some`], otherwise returns [`None`].
756756
///
757757
/// [`Some`]: #variant.Some
758758
/// [`None`]: #variant.None

0 commit comments

Comments
 (0)