Skip to content

Commit

Permalink
Add imports to doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
korrat committed Dec 8, 2020
1 parent 0e491a0 commit 43f82af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clippy_lints/src/zero_sized_map_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ declare_clippy_lint! {
/// **Example:**
///
/// ```rust
/// # use std::collections::HashMap;
/// fn unique_words(text: &str) -> HashMap<&str, ()> {
/// todo!();
/// }
/// ```
/// Use instead:
/// ```rust
/// # use std::collections::HashMap;
/// fn unique_words(text: &str) -> HashSet<&str> {
/// todo!();
/// }
Expand Down

0 comments on commit 43f82af

Please sign in to comment.