From: Onè <43485962+c-git@users.noreply.github.com> Date: Thu, 23 May 2024 07:05:34 +0000 (-0400) Subject: Align arrows in diagrams (#39) X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=ab39f443dc39888d9f8c444ad35f6d97e4bfe7a7;p=rust_exercises.git Align arrows in diagrams (#39) --- diff --git a/book/src/03_ticket_v1/09_heap.md b/book/src/03_ticket_v1/09_heap.md index 7505bdb..27fa791 100644 --- a/book/src/03_ticket_v1/09_heap.md +++ b/book/src/03_ticket_v1/09_heap.md @@ -81,11 +81,11 @@ s.push_str("Hey"); ``` +---------+--------+----------+ Stack | pointer | length | capacity | - | | | 3 | 5 | - +----|----+--------+----------+ - | - | - v + | | | 3 | 5 | + +--| ----+--------+----------+ + | + | + v +---+---+---+---+---+ Heap: | H | e | y | ? | ? | +---+---+---+---+---+ diff --git a/book/src/03_ticket_v1/10_references_in_memory.md b/book/src/03_ticket_v1/10_references_in_memory.md index fa5b382..e9b6f39 100644 --- a/book/src/03_ticket_v1/10_references_in_memory.md +++ b/book/src/03_ticket_v1/10_references_in_memory.md @@ -24,14 +24,14 @@ you'll get something like this in memory: ``` -------------------------------------- - | | + | | +----v----+--------+----------+ +----|----+ Stack | pointer | length | capacity | | pointer | - | | | 3 | 5 | | | - +----|----+--------+----------+ +---------+ - | s r - | - v + | | | 3 | 5 | | | + +--| ----+--------+----------+ +---------+ + | s r + | + v +---+---+---+---+---+ Heap | H | e | y | ? | ? | +---+---+---+---+---+