about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorRyan Marcus <ryan@ryanmarc.us>2018-12-21 14:50:25 -0500
committerGitHub <noreply@github.com>2018-12-21 14:50:25 -0500
commit51e4c1f320fe8fd4b00574430d285b62d10ee93b (patch)
tree87a706f7216a89979c6fc749a2b226342e8d70ec /src/libstd
parent01c6ea2f37326674bf6ca64de55bf5fd90e45015 (diff)
downloadrust-51e4c1f320fe8fd4b00574430d285b62d10ee93b.tar.gz
rust-51e4c1f320fe8fd4b00574430d285b62d10ee93b.zip
Fixed typo in HashMap documentation
Previously "with a custom type as key", now "with a custom key type"
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index 55a1a75d049..9c994d29202 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -354,7 +354,7 @@ const DISPLACEMENT_THRESHOLD: usize = 128;
 /// *stat += random_stat_buff();
 /// ```
 ///
-/// The easiest way to use `HashMap` with a custom type as key is to derive [`Eq`] and [`Hash`].
+/// The easiest way to use `HashMap` with a custom key type is to derive [`Eq`] and [`Hash`].
 /// We must also derive [`PartialEq`].
 ///
 /// [`Eq`]: ../../std/cmp/trait.Eq.html