Skip to content

Commit

Permalink
Update BTreeMap recommendation
Browse files Browse the repository at this point in the history
Focus on the ordering/range benefit.
  • Loading branch information
arthurprs committed Jan 19, 2018
1 parent 0b56ab0 commit fdf444d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/collections/mod.rs
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 fdf444d

Please sign in to comment.