Fixed doc tests for added methods

This commit is contained in:
Chai T. Rex 2020-04-10 13:39:35 -04:00
parent 921579cc3c
commit 78102377d0
2 changed files with 2 additions and 0 deletions

View File

@ -2386,6 +2386,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
/// # Examples
///
/// ```
/// #![feature(or_insert_with_key)]
/// use std::collections::BTreeMap;
///
/// let mut map: BTreeMap<&str, usize> = BTreeMap::new();

View File

@ -1951,6 +1951,7 @@ impl<'a, K, V> Entry<'a, K, V> {
/// # Examples
///
/// ```
/// #![feature(or_insert_with_key)]
/// use std::collections::HashMap;
///
/// let mut map: HashMap<&str, usize> = HashMap::new();