We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566019e commit a747765Copy full SHA for a747765
clippy_lints/src/iter_over_hash_type.rs
@@ -19,12 +19,12 @@ declare_clippy_lint! {
19
///
20
/// ### Example
21
/// ```no_run
22
- /// let my_map = Hashmap::<i32, String>::new();
+ /// let my_map = std::collections::HashMap::<i32, String>::new();
23
/// for (key, value) in my_map { /* ... */ }
24
/// ```
25
/// Use instead:
26
27
28
/// let mut keys = my_map.keys().clone().collect::<Vec<_>();
29
/// keys.sort();
30
/// for key in keys {
0 commit comments