fix incorrect doctest
This commit is contained in:
parent
792fa24595
commit
f415339052
1 changed files with 2 additions and 2 deletions
|
@ -2673,8 +2673,8 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
|
|||
/// ]);
|
||||
///
|
||||
/// let cursor = map.upper_bound(Bound::Included(&3));
|
||||
/// assert_eq!(cursor.peek_prev(), Some((&3, &"d")));
|
||||
/// assert_eq!(cursor.peek_next(), Some((&4, &"c")));
|
||||
/// assert_eq!(cursor.peek_prev(), Some((&3, &"c")));
|
||||
/// assert_eq!(cursor.peek_next(), Some((&4, &"d")));
|
||||
///
|
||||
/// let cursor = map.upper_bound(Bound::Excluded(&3));
|
||||
/// assert_eq!(cursor.peek_prev(), Some((&2, &"b")));
|
||||
|
|
Loading…
Add table
Reference in a new issue