Align arrows in diagrams (#39)

This commit is contained in:
Onè 2024-05-23 03:05:34 -04:00 committed by GitHub
parent a9ba34c59a
commit ab39f443dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 11 deletions

View file

@ -81,11 +81,11 @@ s.push_str("Hey");
``` ```
+---------+--------+----------+ +---------+--------+----------+
Stack | pointer | length | capacity | Stack | pointer | length | capacity |
| | | 3 | 5 | | | | 3 | 5 |
+----|----+--------+----------+ +--| ----+--------+----------+
| |
| |
v v
+---+---+---+---+---+ +---+---+---+---+---+
Heap: | H | e | y | ? | ? | Heap: | H | e | y | ? | ? |
+---+---+---+---+---+ +---+---+---+---+---+

View file

@ -24,14 +24,14 @@ you'll get something like this in memory:
``` ```
-------------------------------------- --------------------------------------
| | | |
+----v----+--------+----------+ +----|----+ +----v----+--------+----------+ +----|----+
Stack | pointer | length | capacity | | pointer | Stack | pointer | length | capacity | | pointer |
| | | 3 | 5 | | | | | | 3 | 5 | | |
+----|----+--------+----------+ +---------+ +--| ----+--------+----------+ +---------+
| s r | s r
| |
v v
+---+---+---+---+---+ +---+---+---+---+---+
Heap | H | e | y | ? | ? | Heap | H | e | y | ? | ? |
+---+---+---+---+---+ +---+---+---+---+---+