@@ -2921,7 +2921,7 @@ impl<'a, K, V> Cursor<'a, K, V> { |
|
|
2921 |
2921 |
/// Returns a reference to the key and value of the next element without |
2922 |
2922 |
/// moving the cursor. |
2923 |
2923 |
/// |
2924 |
|
- /// If the cursor is at the end of the map then `None` is returned |
|
2924 |
+ /// If the cursor is at the end of the map then `None` is returned. |
2925 |
2925 |
#[unstable(feature = "btree_cursors", issue = "107540")] |
2926 |
2926 |
pub fn peek_next(&self) -> Option<(&'a K, &'a V)> { |
2927 |
2927 |
self.clone().next() |
@@ -2963,7 +2963,7 @@ impl<'a, K, V, A> CursorMut<'a, K, V, A> { |
|
|
2963 |
2963 |
/// Returns a reference to the key and value of the next element without |
2964 |
2964 |
/// moving the cursor. |
2965 |
2965 |
/// |
2966 |
|
- /// If the cursor is at the end of the map then `None` is returned |
|
2966 |
+ /// If the cursor is at the end of the map then `None` is returned. |
2967 |
2967 |
#[unstable(feature = "btree_cursors", issue = "107540")] |
2968 |
2968 |
pub fn peek_next(&mut self) -> Option<(&K, &mut V)> { |
2969 |
2969 |
let (k, v) = self.inner.peek_next()?; |
@@ -3061,7 +3061,7 @@ impl<'a, K, V, A> CursorMutKey<'a, K, V, A> { |
|
|
3061 |
3061 |
/// Returns a reference to the key and value of the next element without |
3062 |
3062 |
/// moving the cursor. |
3063 |
3063 |
/// |
3064 |
|
- /// If the cursor is at the end of the map then `None` is returned |
|
3064 |
+ /// If the cursor is at the end of the map then `None` is returned. |
3065 |
3065 |
#[unstable(feature = "btree_cursors", issue = "107540")] |
3066 |
3066 |
pub fn peek_next(&mut self) -> Option<(&mut K, &mut V)> { |
3067 |
3067 |
let current = self.current.as_mut()?; |