mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:24:32 -06:00
Merge pull request #508 from shepmaster/patch-1
Reorder sentence about a generic cons list.
This commit is contained in:
@@ -63,10 +63,9 @@ data structure of `i32` values
|
|||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
We're choosing to implement a cons list that only holds `i32` values, but we
|
We're implementing a cons list that holds only `i32` values. We
|
||||||
could have chosen to implement it using generics as we discussed in Chapter 10
|
could have also chosen to implement a cons list independent of the
|
||||||
to define a cons list concept independent of the type of value stored in the
|
type of value by using generics as discussed in Chapter 10.
|
||||||
cons list.
|
|
||||||
|
|
||||||
Using a cons list to store the list `1, 2, 3` would look like this:
|
Using a cons list to store the list `1, 2, 3` would look like this:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user