Align arrows in diagrams (#39)

This commit is contained in:
Onè authored and GitHub committed 2024-05-23 09:05:34 +02:00
1 parent a9ba34c59a
commit ab39f443dc
2 files changed
+11 -11

No files matched your search

+5 -5
View File
@@ -81,11 +81,11 @@ s.push_str("Hey");
```
+---------+--------+----------+
Stack | pointer | length | capacity |
| | | 3 | 5 |
+----|----+--------+----------+
|
|
v
| | | 3 | 5 |
+--| ----+--------+----------+
|
|
v
+---+---+---+---+---+
Heap: | H | e | y | ? | ? |
+---+---+---+---+---+
@@ -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 | ? | ? |
+---+---+---+---+---+