Mention that BTreeMap::new() doesn't allocate
I think it would be nice to mention this, so you don't have to dig through the src to look at the definition of new().
This commit is contained in:
parent
0d93d3f4a4
commit
0c5c644c91
1 changed files with 2 additions and 0 deletions
|
|
@ -490,6 +490,8 @@ struct MergeIter<K, V, I: Iterator<Item = (K, V)>> {
|
|||
impl<K: Ord, V> BTreeMap<K, V> {
|
||||
/// Makes a new empty BTreeMap with a reasonable choice for B.
|
||||
///
|
||||
/// Does not allocate anything on its own.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Basic usage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue