Skip to content

Commit f567def

Browse files
claudecoderingphimuemue
authored andcommitted
chore: minor improvement for docs
Signed-off-by: claudecodering <[email protected]>
1 parent 6bd5053 commit f567def

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/adaptors/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ fn transpose_result<T, E>(result: Result<Option<T>, E>) -> Option<Result<T, E>>
992992
}
993993
}
994994

995-
/// Create a new `FilterOk` iterator.
995+
/// Create a new `FilterMapOk` iterator.
996996
pub fn filter_map_ok<I, F, T, U, E>(iter: I, f: F) -> FilterMapOk<I, F>
997997
where
998998
I: Iterator<Item = Result<T, E>>,

src/size_hint.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ pub fn min(a: SizeHint, b: SizeHint) -> SizeHint {
8585
(lower, upper)
8686
}
8787

88+
/// Test multiplication of size hints.
8889
#[test]
8990
fn mul_size_hints() {
9091
assert_eq!(mul((3, Some(4)), (3, Some(4))), (9, Some(16)));

src/tuple_impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ macro_rules! impl_tuple_collect {
385385
count_ident!($($Y)*)
386386
}
387387

388+
/// Shift all elements one position to the left and push the new item to the end.
388389
fn left_shift_push(&mut self, mut item: A) {
389390
use std::mem::replace;
390391

0 commit comments

Comments
 (0)