Skip to content

Commit c0a3e48

Browse files
committed
{BTree,Hash}Map: add "Entry API" section heading
1 parent ca77504 commit c0a3e48

File tree

2 files changed

+4
-0
lines changed
  • library
    • alloc/src/collections/btree
    • std/src/collections/hash

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ pub(super) const MIN_LEN: usize = node::MIN_LEN_AFTER_SPLIT;
135135
/// ]);
136136
/// ```
137137
///
138+
/// ## `Entry` API
139+
///
138140
/// `BTreeMap` implements an [`Entry API`], which allows for complex
139141
/// methods of getting, setting, updating and removing keys and their values:
140142
///

library/std/src/collections/hash/map.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ use crate::ops::Index;
135135
/// ]);
136136
/// ```
137137
///
138+
/// ## `Entry` API
139+
///
138140
/// `HashMap` implements an [`Entry` API](#method.entry), which allows
139141
/// for complex methods of getting, setting, updating and removing keys and
140142
/// their values:

0 commit comments

Comments
 (0)