Skip to content

Commit

Permalink
Rollup merge of rust-lang#47578 - arthurprs:btree-doc, r=alexcrichton
Browse files Browse the repository at this point in the history
Update BTreeMap recommendation

Focus on the ordering / range(instead of all) benefit as it's the most important feature.
  • Loading branch information
GuillaumeGomez authored Jan 20, 2018
2 parents a9672c2 + fdf444d commit 4074893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
//! * You want a map, with no extra functionality.
//!
//! ### Use a `BTreeMap` when:
//! * You want a map sorted by its keys.
//! * You want to be able to get a range of entries on-demand.
//! * You're interested in what the smallest or largest key-value pair is.
//! * You want to find the largest or smallest key that is smaller or larger
//! than something.
//! * You want to be able to get all of the entries in order on-demand.
//! * You want a map sorted by its keys.
//!
//! ### Use the `Set` variant of any of these `Map`s when:
//! * You just want to remember which keys you've seen.
Expand Down

0 comments on commit 4074893

Please sign in to comment.