Skip to content

Commit 08ea4c4

Browse files
committed
Canonicalize some free functions (4) merge_join_by: documentation
1 parent caed277 commit 08ea4c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/merge_join.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ use std::fmt;
44

55
use super::adaptors::{PutBack, put_back};
66
use crate::either_or_both::EitherOrBoth;
7+
#[cfg(doc)]
8+
use crate::Itertools;
79

810
/// Return an iterator adaptor that merge-joins items from the two base iterators in ascending order.
911
///
10-
/// See [`.merge_join_by()`](crate::Itertools::merge_join_by) for more information.
12+
/// [`IntoIterator`] enabled version of [`Itertools::merge_join_by`].
1113
pub fn merge_join_by<I, J, F>(left: I, right: J, cmp_fn: F)
1214
-> MergeJoinBy<I::IntoIter, J::IntoIter, F>
1315
where I: IntoIterator,

0 commit comments

Comments
 (0)