Skip to content

Commit 04616a6

Browse files
committed
Move Vec chapters into the subdir
1 parent 2e159b0 commit 04616a6

14 files changed

+27
-12
lines changed

book.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,20 @@ description = "The Dark Arts of Advanced and Unsafe Rust Programming"
66
[output.html]
77
git-repository-url = "https://github.com/rust-lang/nomicon"
88

9+
[output.html.redirect]
10+
# Vec-related chapters.
11+
"/vec-alloc.html" = "/vec/vec-alloc.html"
12+
"/vec-dealloc.html" = "/vec/vec-dealloc.html"
13+
"/vec-deref.html" = "/vec/vec-deref.html"
14+
"/vec-drain.html" = "/vec/vec-drain.html"
15+
"/vec-final.html" = "/vec/vec-final.html"
16+
"/vec-insert-remove.html" = "/vec/vec-insert-remove.html"
17+
"/vec-into-iter.html" = "/vec/vec-into-iter.html"
18+
"/vec-layout.html" = "/vec/vec-layout.html"
19+
"/vec-push-pop.html" = "/vec/vec-push-pop.html"
20+
"/vec-raw.html" = "/vec/vec-raw.html"
21+
"/vec-zsts.html" = "/vec/vec-zsts.html"
22+
"/vec.html" = "/vec/vec.html"
23+
924
[rust]
1025
edition = "2018"

src/SUMMARY.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@
4242
* [Races](races.md)
4343
* [Send and Sync](send-and-sync.md)
4444
* [Atomics](atomics.md)
45-
* [Implementing Vec](vec.md)
46-
* [Layout](vec-layout.md)
47-
* [Allocating](vec-alloc.md)
48-
* [Push and Pop](vec-push-pop.md)
49-
* [Deallocating](vec-dealloc.md)
50-
* [Deref](vec-deref.md)
51-
* [Insert and Remove](vec-insert-remove.md)
52-
* [IntoIter](vec-into-iter.md)
53-
* [RawVec](vec-raw.md)
54-
* [Drain](vec-drain.md)
55-
* [Handling Zero-Sized Types](vec-zsts.md)
56-
* [Final Code](vec-final.md)
45+
* [Implementing Vec](./vec/vec.md)
46+
* [Layout](./vec/vec-layout.md)
47+
* [Allocating](./vec/vec-alloc.md)
48+
* [Push and Pop](./vec/vec-push-pop.md)
49+
* [Deallocating](./vec/vec-dealloc.md)
50+
* [Deref](./vec/vec-deref.md)
51+
* [Insert and Remove](./vec/vec-insert-remove.md)
52+
* [IntoIter](./vec/vec-into-iter.md)
53+
* [RawVec](./vec/vec-raw.md)
54+
* [Drain](./vec/vec-drain.md)
55+
* [Handling Zero-Sized Types](./vec/vec-zsts.md)
56+
* [Final Code](./vec/vec-final.md)
5757
* [Implementing Arc and Mutex](arc-and-mutex.md)
5858
* [Arc](arc.md)
5959
* [Layout](arc-layout.md)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)