Skip to content

Commit 38ae92a

Browse files
committed
Remove unnecessary fn main in doctest.
Fixes a Clippy warning.
1 parent 43acaaf commit 38ae92a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/set.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,9 @@ use super::map::{self, ConsumeAllOnDrop, DefaultHashBuilder, DrainFilterInner, H
100100
/// ```
101101
/// use hashbrown::HashSet;
102102
///
103-
/// fn main() {
104103
/// let viking_names: HashSet<&'static str> =
105104
/// [ "Einar", "Olaf", "Harald" ].iter().cloned().collect();
106105
/// // use the values stored in the set
107-
/// }
108106
/// ```
109107
///
110108
/// [`Cell`]: https://doc.rust-lang.org/std/cell/struct.Cell.html

0 commit comments

Comments
 (0)