diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index f94c62d23ece..58a514dc0eee 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -284,7 +284,8 @@ pub fn build_sized_opt>(size: Option, // Functions that combine iteration and building -/// Applies a function to each element of an iterable and returns the results. +/// Applies a function to each element of an iterable and returns the results +/// in a sequence built via `BU`. See also `map_to_vec`. #[inline(always)] pub fn map,U,BU: Buildable>(v: &IT, f: &fn(&T) -> U) -> BU {