mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
Align arrows in diagrams (#39)
This commit is contained in:
parent
a9ba34c59a
commit
ab39f443dc
2 changed files with 11 additions and 11 deletions
|
@ -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 | ? | ? |
|
||||||
+---+---+---+---+---+
|
+---+---+---+---+---+
|
||||||
|
|
|
@ -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 | ? | ? |
|
||||||
+---+---+---+---+---+
|
+---+---+---+---+---+
|
||||||
|
|
Loading…
Reference in a new issue