Skip to content

Commit

Permalink
Rollup merge of rust-lang#63108 - lzutao:option-xor-typo, r=jonas-sch…
Browse files Browse the repository at this point in the history
…ievink

Add links to None in Option doc

r? @jonas-schievink
  • Loading branch information
Centril authored Jul 30, 2019
2 parents 4282391 + c56d8a8 commit 4edc326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//! * Initial values
//! * Return values for functions that are not defined
//! over their entire input range (partial functions)
//! * Return value for otherwise reporting simple errors, where `None` is
//! * Return value for otherwise reporting simple errors, where [`None`] is
//! returned on error
//! * Optional struct fields
//! * Struct fields that can be loaned or "taken"
Expand Down Expand Up @@ -752,7 +752,7 @@ impl<T> Option<T> {
}
}

/// Returns [`Some`] if exactly one of `self`, `optb` is [`Some`], otherwise returns `None`.
/// Returns [`Some`] if exactly one of `self`, `optb` is [`Some`], otherwise returns [`None`].
///
/// [`Some`]: #variant.Some
/// [`None`]: #variant.None
Expand Down

0 comments on commit 4edc326

Please sign in to comment.