Skip to content

Commit b9956d4

Browse files
committed
shorten range syntax
1 parent 58e597e commit b9956d4

File tree

1 file changed

+1
-1
lines changed
  • src/libcollections/btree

1 file changed

+1
-1
lines changed

src/libcollections/btree/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl<T: Ord> BTreeSet<T> {
227227
/// for &elem in set.range((Included(&4), Included(&8))) {
228228
/// println!("{}", elem);
229229
/// }
230-
/// assert_eq!(Some(&5), set.range((Included(&4), Unbounded)).next());
230+
/// assert_eq!(Some(&5), set.range(4..).next());
231231
/// ```
232232
#[unstable(feature = "btree_range",
233233
reason = "matches collection reform specification, waiting for dust to settle",

0 commit comments

Comments
 (0)