]> git.lizzy.rs Git - rust.git/commitdiff
Make book ordering more natural
authorEvan <nerdx00@gmail.com>
Wed, 2 Mar 2016 00:50:11 +0000 (19:50 -0500)
committerEvan <nerdx00@gmail.com>
Wed, 2 Mar 2016 00:50:11 +0000 (19:50 -0500)
Vectors come up in sections dedicated to ownership with the assumption that we know something about it but we haven't seen it yet. On the other hand, you need not know anything about ownership or lifetimes to understand the basics of vectors covered in the vector section of the book. Additionally, by moving it where it is there is a natural progression from loops to an iterative type which discusses for loops. This kind of interaction is generally better for learning.

I would like to have moved the struct section as well but I'm less confident about how to handle it since the ownership sections discuss structs and the structs section talks about mutable borrow.

src/doc/book/SUMMARY.md

index fe5e1c3990c5c8412a41fd3efe9c6b7835531c03..18aa9f24580d5f373855d0fe9da2378a485d38b5 100644 (file)
@@ -9,6 +9,7 @@
     * [Comments](comments.md)
     * [if](if.md)
     * [Loops](loops.md)
+    * [Vectors](vectors.md)
     * [Ownership](ownership.md)
     * [References and Borrowing](references-and-borrowing.md)
     * [Lifetimes](lifetimes.md)
@@ -18,7 +19,6 @@
     * [Match](match.md)
     * [Patterns](patterns.md)
     * [Method Syntax](method-syntax.md)
-    * [Vectors](vectors.md)
     * [Strings](strings.md)
     * [Generics](generics.md)
     * [Traits](traits.md)