diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-01 23:56:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-01 23:56:23 +0200 |
| commit | 7628cada4f56676c361730251841e65600d863fe (patch) | |
| tree | 1bc24a00dc687139d6c6c2b2df1d155e2294a1fd /src/liballoc/collections | |
| parent | db9689333a2b52af4dffde750e7055cf6badb576 (diff) | |
| parent | 6c1b447f2e67f5eae89394344ade698aca3ec7e6 (diff) | |
| download | rust-7628cada4f56676c361730251841e65600d863fe.tar.gz rust-7628cada4f56676c361730251841e65600d863fe.zip | |
Rollup merge of #64912 - lzutao:unneeded-main-doc, r=jonas-schievink
Remove unneeded `fn main` blocks from docs ## [No whitespace diff](https://github.com/rust-lang/rust/pull/64912/files?w=1)
Diffstat (limited to 'src/liballoc/collections')
| -rw-r--r-- | src/liballoc/collections/btree/map.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/liballoc/collections/btree/map.rs b/src/liballoc/collections/btree/map.rs index ddf012d1502..83fd4485f73 100644 --- a/src/liballoc/collections/btree/map.rs +++ b/src/liballoc/collections/btree/map.rs @@ -2226,14 +2226,12 @@ impl<'a, K: Ord, V: Default> Entry<'a, K, V> { /// # Examples /// /// ``` - /// # fn main() { /// use std::collections::BTreeMap; /// /// let mut map: BTreeMap<&str, Option<usize>> = BTreeMap::new(); /// map.entry("poneyland").or_default(); /// /// assert_eq!(map["poneyland"], None); - /// # } /// ``` pub fn or_default(self) -> &'a mut V { match self { |
