From ab39f443dc39888d9f8c444ad35f6d97e4bfe7a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?On=C3=A8?= <43485962+c-git@users.noreply.github.com> Date: Thu, 23 May 2024 03:05:34 -0400 Subject: [PATCH] Align arrows in diagrams (#39) --- book/src/03_ticket_v1/09_heap.md | 10 +++++----- book/src/03_ticket_v1/10_references_in_memory.md | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) 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 | ? | ? | +---+---+---+---+---+ -- 2.45.2