Skip to content

Commit d95ae4e

Browse files
committed
fix incorrect doctest
1 parent 170a28a commit d95ae4e

File tree

1 file changed

+2
-2
lines changed
  • alloc/src/collections/btree

1 file changed

+2
-2
lines changed

alloc/src/collections/btree/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2673,8 +2673,8 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
26732673
/// ]);
26742674
///
26752675
/// let cursor = map.upper_bound(Bound::Included(&3));
2676-
/// assert_eq!(cursor.peek_prev(), Some((&3, &"d")));
2677-
/// assert_eq!(cursor.peek_next(), Some((&4, &"c")));
2676+
/// assert_eq!(cursor.peek_prev(), Some((&3, &"c")));
2677+
/// assert_eq!(cursor.peek_next(), Some((&4, &"d")));
26782678
///
26792679
/// let cursor = map.upper_bound(Bound::Excluded(&3));
26802680
/// assert_eq!(cursor.peek_prev(), Some((&2, &"b")));

0 commit comments

Comments
 (0)