Add missing periods on BTreeMap cursor peek_next docs

This commit is contained in:
Ken Micklas 2024-07-28 15:18:02 +01:00
parent 1b51d80027
commit 0468983eae

View File

@ -2921,7 +2921,7 @@ pub fn prev(&mut self) -> Option<(&'a K, &'a V)> {
/// Returns a reference to the key and value of the next element without
/// moving the cursor.
///
/// If the cursor is at the end of the map then `None` is returned
/// If the cursor is at the end of the map then `None` is returned.
#[unstable(feature = "btree_cursors", issue = "107540")]
pub fn peek_next(&self) -> Option<(&'a K, &'a V)> {
self.clone().next()
@ -2963,7 +2963,7 @@ pub fn prev(&mut self) -> Option<(&K, &mut V)> {
/// Returns a reference to the key and value of the next element without
/// moving the cursor.
///
/// If the cursor is at the end of the map then `None` is returned
/// If the cursor is at the end of the map then `None` is returned.
#[unstable(feature = "btree_cursors", issue = "107540")]
pub fn peek_next(&mut self) -> Option<(&K, &mut V)> {
let (k, v) = self.inner.peek_next()?;
@ -3061,7 +3061,7 @@ pub fn prev(&mut self) -> Option<(&mut K, &mut V)> {
/// Returns a reference to the key and value of the next element without
/// moving the cursor.
///
/// If the cursor is at the end of the map then `None` is returned
/// If the cursor is at the end of the map then `None` is returned.
#[unstable(feature = "btree_cursors", issue = "107540")]
pub fn peek_next(&mut self) -> Option<(&mut K, &mut V)> {
let current = self.current.as_mut()?;