]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #20214: bluss/fix-hashmap-example
authorAlex Crichton <alex@alexcrichton.com>
Tue, 30 Dec 2014 00:36:05 +0000 (16:36 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 30 Dec 2014 00:36:05 +0000 (16:36 -0800)
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.


Trivial merge