fix incorrect doctest

This commit is contained in:
ripytide 2024-02-11 16:18:40 +00:00
parent 792fa24595
commit f415339052
No known key found for this signature in database
GPG key ID: B2629F9EC7C2FE8C

View file

@ -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")));