diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 120199263..e90af8963 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -31,7 +31,7 @@ - [Controlling visibility with `pub`](ch07-02-controlling-visibility-with-pub.md) - [Importing names with `use`](ch07-03-importing-names-with-use.md) -- [Essential Collections](ch08-00-essential-collections.md) +- [Fundamental Collections](ch08-00-fundamental-collections.md) - [Vectors](ch08-01-vectors.md) - [Strings](ch08-02-strings.md) - [HashMaps](ch08-03-hashmaps.md) diff --git a/src/ch08-00-essential-collections.md b/src/ch08-00-fundamental-collections.md similarity index 97% rename from src/ch08-00-essential-collections.md rename to src/ch08-00-fundamental-collections.md index 7d3a89475..29044dd42 100644 --- a/src/ch08-00-essential-collections.md +++ b/src/ch08-00-fundamental-collections.md @@ -1,4 +1,4 @@ -# Essential Collections +# Fundamental Collections Rust's standard library includes a number of really useful data structures called *collections*. Most other types represent one specific value, but diff --git a/src/ch08-03-hashmaps.md b/src/ch08-03-hashmaps.md index 867d2caf1..fd8a92b0b 100644 --- a/src/ch08-03-hashmaps.md +++ b/src/ch08-03-hashmaps.md @@ -1,6 +1,6 @@ ## HashMaps -The last of our essential collections is the *HashMap*. A `HashMap` +The last of our fundamental collections is the *HashMap*. A `HashMap` stores a mapping of keys of type `K` to values of type `V`. It does this via a *hashing function*, which determines how it places these keys and values into memory. Many different programming languges support this kind of data @@ -25,7 +25,7 @@ map.insert(2, "world"); ``` Note that we need to `use` the `HashMap` from the collections portion of the -standard library. Of our three essential collections, this one is the least +standard library. Of our three fundamental collections, this one is the least often used, so it has a bit less support from the language. There's no built-in macro to construct them, for example, and they're not in the prelude, so we need to add a `use` statement for them.