Skip to content

Commit ccc955c

Browse files
authored
Fix HashMap's values_mut example to use println!
1 parent 2c50f4e commit ccc955c

File tree

1 file changed

+1
-1
lines changed
  • src/libstd/collections/hash

1 file changed

+1
-1
lines changed

src/libstd/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ impl<K, V, S> HashMap<K, V, S>
877877
/// }
878878
///
879879
/// for val in map.values() {
880-
/// print!("{}", val);
880+
/// println!("{}", val);
881881
/// }
882882
/// ```
883883
#[stable(feature = "map_values_mut", since = "1.10.0")]

0 commit comments

Comments
 (0)