diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-29 07:11:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 07:11:16 +0200 |
| commit | 0c6d2fb3dcd987667d2b82c531326cfd401f1afa (patch) | |
| tree | 12450124ab22020a8af917a09187f373e84824d5 | |
| parent | 9b82536776177f74dbed06b9b35290eece367b04 (diff) | |
| parent | 0468983eae5ca1ea723407497b1dfceab8d2bc1d (diff) | |
| download | rust-0c6d2fb3dcd987667d2b82c531326cfd401f1afa.tar.gz rust-0c6d2fb3dcd987667d2b82c531326cfd401f1afa.zip | |
Rollup merge of #128310 - kmicklas:btree-map-peek-next-docs, r=tgross35
Add missing periods on `BTreeMap` cursor `peek_next` docs Tracking issue: https://github.com/rust-lang/rust/issues/107540
| -rw-r--r-- | library/alloc/src/collections/btree/map.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs index 8fe4cd7144b..d84654e36d7 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -2921,7 +2921,7 @@ impl<'a, K, V> Cursor<'a, K, 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 @@ impl<'a, K, V, A> CursorMut<'a, K, V, A> { /// 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 @@ impl<'a, K, V, A> CursorMutKey<'a, K, V, A> { /// 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()?; |
