Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0c6d2fb

Browse files
Rollup merge of #128310 - kmicklas:btree-map-peek-next-docs, r=tgross35
Add missing periods on `BTreeMap` cursor `peek_next` docs Tracking issue: #107540
2 parents 9b82536 + 0468983 commit 0c6d2fb

File tree

1 file changed

+3
-3
lines changed
  • library/alloc/src/collections/btree

1 file changed

+3
-3
lines changed

‎library/alloc/src/collections/btree/map.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,7 +2921,7 @@ impl<'a, K, V> Cursor<'a, K, V> {
29212921
/// Returns a reference to the key and value of the next element without
29222922
/// moving the cursor.
29232923
///
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.
29252925
#[unstable(feature = "btree_cursors", issue = "107540")]
29262926
pub fn peek_next(&self) -> Option<(&'a K, &'a V)> {
29272927
self.clone().next()
@@ -2963,7 +2963,7 @@ impl<'a, K, V, A> CursorMut<'a, K, V, A> {
29632963
/// Returns a reference to the key and value of the next element without
29642964
/// moving the cursor.
29652965
///
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.
29672967
#[unstable(feature = "btree_cursors", issue = "107540")]
29682968
pub fn peek_next(&mut self) -> Option<(&K, &mut V)> {
29692969
let (k, v) = self.inner.peek_next()?;
@@ -3061,7 +3061,7 @@ impl<'a, K, V, A> CursorMutKey<'a, K, V, A> {
30613061
/// Returns a reference to the key and value of the next element without
30623062
/// moving the cursor.
30633063
///
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.
30653065
#[unstable(feature = "btree_cursors", issue = "107540")]
30663066
pub fn peek_next(&mut self) -> Option<(&mut K, &mut V)> {
30673067
let current = self.current.as_mut()?;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /