Skip to content

Commit a0225ce

Browse files
rbruenigPhilippe-Cholet
authored andcommitted
tree_reduce doc: fix formatting
1 parent 1091f24 commit a0225ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2536,10 +2536,10 @@ pub trait Itertools: Iterator {
25362536
///
25372537
/// Moreover, the output of `tree_reduce` is preferable to that of [`Iterator::reduce`] in
25382538
/// certain cases. For example, building a binary search tree using `tree_reduce` will result in
2539-
/// a balanced tree with height O(ln(n)), while [`Iterator::reduce`] will output a tree with
2540-
/// height O(n), essentially a linked list.
2539+
/// a balanced tree with height `O(ln(n))`, while [`Iterator::reduce`] will output a tree with
2540+
/// height `O(n)`, essentially a linked list.
25412541
///
2542-
/// If 'f' does not benefit from such a reordering, like `u32::wrapping_add`, prefer the
2542+
/// If `f` does not benefit from such a reordering, like `u32::wrapping_add`, prefer the
25432543
/// normal [`Iterator::reduce`] instead since it will most likely result in the generation of
25442544
/// simpler code because the compiler is able to optimize it.
25452545
///

0 commit comments

Comments
 (0)