Skip to content

Commit edf0d90

Browse files
committed
Move Arc-Mutex chapters into the subdir
1 parent 04616a6 commit edf0d90

File tree

9 files changed

+18
-9
lines changed

9 files changed

+18
-9
lines changed

book.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,14 @@ git-repository-url = "https://github.com/rust-lang/nomicon"
2121
"/vec-zsts.html" = "/vec/vec-zsts.html"
2222
"/vec.html" = "/vec/vec.html"
2323

24+
# Arc and Mutex related chapters.
25+
"/arc-and-mutex.html" = "/arc-mutex/arc-and-mutex.html"
26+
"/arc-base.html" = "/arc-mutex/arc-base.html"
27+
"/arc-clone.html" = "/arc-mutex/arc-clone.html"
28+
"/arc-drop.html" = "/arc-mutex/arc-drop.html"
29+
"/arc-final.html" = "/arc-mutex/arc-final.html"
30+
"/arc-layout.html" = "/arc-mutex/arc-layout.html"
31+
"/arc.html" = "/arc-mutex/arc.html"
32+
2433
[rust]
2534
edition = "2018"

src/SUMMARY.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454
* [Drain](./vec/vec-drain.md)
5555
* [Handling Zero-Sized Types](./vec/vec-zsts.md)
5656
* [Final Code](./vec/vec-final.md)
57-
* [Implementing Arc and Mutex](arc-and-mutex.md)
58-
* [Arc](arc.md)
59-
* [Layout](arc-layout.md)
60-
* [Base Code](arc-base.md)
61-
* [Cloning](arc-clone.md)
62-
* [Dropping](arc-drop.md)
63-
* [Final Code](arc-final.md)
57+
* [Implementing Arc and Mutex](./arc-mutex/arc-and-mutex.md)
58+
* [Arc](./arc-mutex/arc.md)
59+
* [Layout](./arc-mutex/arc-layout.md)
60+
* [Base Code](./arc-mutex/arc-base.md)
61+
* [Cloning](./arc-mutex/arc-clone.md)
62+
* [Dropping](./arc-mutex/arc-drop.md)
63+
* [Final Code](./arc-mutex/arc-final.md)
6464
* [FFI](ffi.md)
6565
* [Beneath `std`](beneath-std.md)
6666
* [#[panic_handler]](panic-handler.md)

src/arc-and-mutex.md renamed to src/arc-mutex/arc-and-mutex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
Knowing the theory is all fine and good, but the *best* way to understand
44
something is to use it. To better understand atomics and interior mutability,
5-
we'll be implementing versions of the standard library's Arc and Mutex types.
5+
we'll be implementing versions of the standard library's `Arc` and `Mutex` types.
66

7-
TODO: Mutex
7+
TODO: Write `Mutex` chapters.
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)