diff --git a/library/core/src/option.rs b/library/core/src/option.rs index b93b40e3003..9b6ff76b240 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -1402,6 +1402,7 @@ impl Option { /// let item_2_0 = arr_2d.get(2).and_then(|row| row.get(0)); /// assert_eq!(item_2_0, None); /// ``` + #[doc(alias = "flatmap")] #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn and_then(self, f: F) -> Option