From: Alex Crichton Date: Tue, 30 Dec 2014 00:36:05 +0000 (-0800) Subject: rollup merge of #20214: bluss/fix-hashmap-example X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9f6eb29a9dc4b3236bde6afb1da4fcee49f5bd6a;p=rust.git rollup merge of #20214: bluss/fix-hashmap-example The example derived Hash + Eq on a type that was used as *values* for a hashmap.. for the example to make sense, we have to use a custom *key* type. Write a slightly more involved example, still using Vikings, but this time as key. I preferred using String over &str here, since that's the typical usage and we might want to lead users down that path. --- 9f6eb29a9dc4b3236bde6afb1da4fcee49f5bd6a