Skip to content

Commit 088dc91

Browse files
authored
Rollup merge of #90239 - r00ster91:patch-1, r=fee1-dead
Consistent big O notation in map.rs Follow up to #89216
2 parents 337e156 + b1b4c6c commit 088dc91

File tree

1 file changed

+1
-1
lines changed
  • library/alloc/src/collections/btree

1 file changed

+1
-1
lines changed

library/alloc/src/collections/btree/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub(super) const MIN_LEN: usize = node::MIN_LEN_AFTER_SPLIT;
5555
/// performance on *small* nodes of elements which are cheap to compare. However in the future we
5656
/// would like to further explore choosing the optimal search strategy based on the choice of B,
5757
/// and possibly other factors. Using linear search, searching for a random element is expected
58-
/// to take O(B * log(n)) comparisons, which is generally worse than a BST. In practice,
58+
/// to take B * log(n) comparisons, which is generally worse than a BST. In practice,
5959
/// however, performance is excellent.
6060
///
6161
/// It is a logic error for a key to be modified in such a way that the key's ordering relative to

0 commit comments

Comments
 (0)