Align arrows in diagrams (#39)
authorOnè <43485962+c-git@users.noreply.github.com>
Thu, 23 May 2024 07:05:34 +0000 (03:05 -0400)
committerGitHub <noreply@github.com>
Thu, 23 May 2024 07:05:34 +0000 (09:05 +0200)
book/src/03_ticket_v1/09_heap.md
book/src/03_ticket_v1/10_references_in_memory.md

index 7505bdb..27fa791 100644 (file)
@@ -81,11 +81,11 @@ s.push_str("Hey");
 ```
       +---------+--------+----------+
 Stack | pointer | length | capacity |
-      |    |    |   3    |    5     |
-      +----|----+--------+----------+
-           |       
-           |       
-           v       
+      |  |      |   3    |    5     |
+      +--|  ----+--------+----------+
+         |
+         |
+         v
        +---+---+---+---+---+
 Heap:  | H | e | y | ? | ? |
        +---+---+---+---+---+
index fa5b382..e9b6f39 100644 (file)
@@ -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 | ? | ? |
        +---+---+---+---+---+