Skip to content

Commit 675723e

Browse files
committed
Auto merge of #32000 - xaocon:master, r=steveklabnik
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.
2 parents 25e42ac + cf01fb6 commit 675723e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* [Comments](comments.md)
1010
* [if](if.md)
1111
* [Loops](loops.md)
12+
* [Vectors](vectors.md)
1213
* [Ownership](ownership.md)
1314
* [References and Borrowing](references-and-borrowing.md)
1415
* [Lifetimes](lifetimes.md)
@@ -18,7 +19,6 @@
1819
* [Match](match.md)
1920
* [Patterns](patterns.md)
2021
* [Method Syntax](method-syntax.md)
21-
* [Vectors](vectors.md)
2222
* [Strings](strings.md)
2323
* [Generics](generics.md)
2424
* [Traits](traits.md)

0 commit comments

Comments
 (0)