Skip to content

Commit dab626b

Browse files
committed
Include "flatmap" in docs of Option::and_then
Some newcomers might look for a "flatMap" method on Option. Include the reference so that searching the page would find "and_then".
1 parent b6d91a2 commit dab626b

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)