Skip to content

Commit 7810237

Browse files
committed
Fixed doc tests for added methods
1 parent 921579c commit 7810237

File tree

2 files changed

+2
-0
lines changed
  • src
    • liballoc/collections/btree
    • libstd/collections/hash

2 files changed

+2
-0
lines changed

src/liballoc/collections/btree/map.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2386,6 +2386,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
23862386
/// # Examples
23872387
///
23882388
/// ```
2389+
/// #![feature(or_insert_with_key)]
23892390
/// use std::collections::BTreeMap;
23902391
///
23912392
/// let mut map: BTreeMap<&str, usize> = BTreeMap::new();

src/libstd/collections/hash/map.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1951,6 +1951,7 @@ impl<'a, K, V> Entry<'a, K, V> {
19511951
/// # Examples
19521952
///
19531953
/// ```
1954+
/// #![feature(or_insert_with_key)]
19541955
/// use std::collections::HashMap;
19551956
///
19561957
/// let mut map: HashMap<&str, usize> = HashMap::new();

0 commit comments

Comments
 (0)