File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
66
//! ### Use a `BTreeMap` when:
67
67
//! * You're interested in what the smallest or largest key-value pair is.
68
68
//! * You want to find the largest or smallest key that is smaller or larger
69
- //! than something
69
+ //! than something.
70
70
//! * You want to be able to get all of the entries in order on-demand.
71
71
//! * You want a sorted map.
72
72
//!
147
147
//! relation to the number of elements in the collection. VecMap should only be
148
148
//! seriously considered for small keys.
149
149
//!
150
- //! Note also that BTreeMap's precise preformance depends on the value of B.
150
+ //! Note also that BTreeMap's precise performance depends on the value of B.
151
151
//!
152
152
//! # Correct and Efficient Usage of Collections
153
153
//!
309
309
//! If a `Vacant(entry)` is yielded, then the key *was not* found. In this case
310
310
//! the only valid operation is to `insert` a value into the entry. When this is
311
311
//! done, the vacant entry is consumed and converted into a mutable reference to
312
- //! the the value that was inserted. This allows for further manipulation of the
312
+ //! the value that was inserted. This allows for further manipulation of the
313
313
//! value beyond the lifetime of the search itself. This is useful if complex
314
314
//! logic needs to be performed on the value regardless of whether the value was
315
315
//! just inserted.
You can’t perform that action at this time.
0 commit comments