From dab626b5becdab4155e0328ab4ac140cef5cc715 Mon Sep 17 00:00:00 2001 From: Robin Stocker Date: Mon, 9 Feb 2015 22:44:19 +1100 Subject: [PATCH] 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". --- src/libcore/option.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 2f261b0628f..6a217f34b6a 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -605,6 +605,8 @@ impl Option { /// Returns `None` if the option is `None`, otherwise calls `f` with the /// wrapped value and returns the result. /// + /// Some languages call this operation flatmap. + /// /// # Example /// /// ```