Skip to content

Commit

Permalink
shorten range syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Jan 14, 2017
1 parent 58e597e commit b9956d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/btree/set.rs
Expand Up @@ -227,7 +227,7 @@ impl<T: Ord> BTreeSet<T> {
/// for &elem in set.range((Included(&4), Included(&8))) {
/// println!("{}", elem);
/// }
/// assert_eq!(Some(&5), set.range((Included(&4), Unbounded)).next());
/// assert_eq!(Some(&5), set.range(4..).next());
/// ```
#[unstable(feature = "btree_range",
reason = "matches collection reform specification, waiting for dust to settle",
Expand Down

0 comments on commit b9956d4

Please sign in to comment.