Skip to content

Commit e4e4afa

Browse files
committed
Rollup merge of rust-lang#22111 - robinst:option-docs-flatmap, r=steveklabnik
Some newcomers might look for a "flatMap" method on Option. Include the reference so that searching the page would find "and_then".
2 parents 2d94c44 + dab626b commit e4e4afa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/option.rs

+2
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ impl<T> Option<T> {
605605
/// Returns `None` if the option is `None`, otherwise calls `f` with the
606606
/// wrapped value and returns the result.
607607
///
608+
/// Some languages call this operation flatmap.
609+
///
608610
/// # Example
609611
///
610612
/// ```

0 commit comments

Comments
 (0)