Skip to content

Commit

Permalink
Move Arc-Mutex chapters into the subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jun 19, 2021
1 parent 04616a6 commit edf0d90
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
9 changes: 9 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,14 @@ git-repository-url = "https://github.com/rust-lang/nomicon"
"/vec-zsts.html" = "/vec/vec-zsts.html"
"/vec.html" = "/vec/vec.html"

# Arc and Mutex related chapters.
"/arc-and-mutex.html" = "/arc-mutex/arc-and-mutex.html"
"/arc-base.html" = "/arc-mutex/arc-base.html"
"/arc-clone.html" = "/arc-mutex/arc-clone.html"
"/arc-drop.html" = "/arc-mutex/arc-drop.html"
"/arc-final.html" = "/arc-mutex/arc-final.html"
"/arc-layout.html" = "/arc-mutex/arc-layout.html"
"/arc.html" = "/arc-mutex/arc.html"

[rust]
edition = "2018"
14 changes: 7 additions & 7 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
* [Drain](./vec/vec-drain.md)
* [Handling Zero-Sized Types](./vec/vec-zsts.md)
* [Final Code](./vec/vec-final.md)
* [Implementing Arc and Mutex](arc-and-mutex.md)
* [Arc](arc.md)
* [Layout](arc-layout.md)
* [Base Code](arc-base.md)
* [Cloning](arc-clone.md)
* [Dropping](arc-drop.md)
* [Final Code](arc-final.md)
* [Implementing Arc and Mutex](./arc-mutex/arc-and-mutex.md)
* [Arc](./arc-mutex/arc.md)
* [Layout](./arc-mutex/arc-layout.md)
* [Base Code](./arc-mutex/arc-base.md)
* [Cloning](./arc-mutex/arc-clone.md)
* [Dropping](./arc-mutex/arc-drop.md)
* [Final Code](./arc-mutex/arc-final.md)
* [FFI](ffi.md)
* [Beneath `std`](beneath-std.md)
* [#[panic_handler]](panic-handler.md)
4 changes: 2 additions & 2 deletions src/arc-and-mutex.md → src/arc-mutex/arc-and-mutex.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

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

TODO: Mutex
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 comments on commit edf0d90

Please sign in to comment.