@@ -959,7 +959,7 @@ A String is made up of three parts (shown on the left): \
959
959
This group of data is stored on the stack.
960
960
On the right is the memory on the heap that holds the contents.
961
961
962
- ![ ] ( ./images/1be48e7d2e6765b3e337f4d0738ed7b4944d9f70.png )
962
+ ![ ] ( ./images/1be48e7d2e6765b3e337f4d0738ed7b4944d9f70.png ) {width=50%}
963
963
964
964
---
965
965
@@ -983,7 +983,7 @@ that are on the stack.
983
983
984
984
We ** do not** copy the data on the heap that the pointer refers to.
985
985
986
- ![ ] ( ./images/612c87d43da48b3d61bfeb8b21ff9a536d906f18.png )
986
+ ![ ] ( ./images/612c87d43da48b3d61bfeb8b21ff9a536d906f18.png ) {width=50%}
987
987
988
988
---
989
989
@@ -1007,7 +1007,7 @@ Because Rust invalidates the first variable,
1007
1007
instead of calling it a shallow copy, it's known as a move.
1008
1008
So what actually happens is shown here:
1009
1009
1010
- ![ ] ( ./images/2ba912cafdb15ec5acfd9a364f8e30f2ae585505.png )
1010
+ ![ ] ( ./images/2ba912cafdb15ec5acfd9a364f8e30f2ae585505.png ) {width=50%}
1011
1011
1012
1012
---
1013
1013
@@ -1414,13 +1414,13 @@ Rather than a reference to the entire `String`,
1414
1414
` hello ` is a reference to a portion of the ` String ` ,
1415
1415
specified in the extra ` [0..5] ` bit.
1416
1416
1417
- ![ ] ( ./images/21b5d08fbed6e1b0268cc7e578185f829711846d.png )
1417
+ ![ ] ( ./images/21b5d08fbed6e1b0268cc7e578185f829711846d.png ) {width=50%}
1418
1418
1419
1419
---
1420
1420
1421
1421
How do you create slices?
1422
1422
1423
- ![ ] ( ./images/14832e393d9139f7266d12d75253b6000e53a3fa.png )
1423
+ ![ ] ( ./images/14832e393d9139f7266d12d75253b6000e53a3fa.png ) {width=50%}
1424
1424
1425
1425
. . .
1426
1426
@@ -7422,7 +7422,7 @@ the structure of your public API?
7422
7422
as if it were defined in the other location instead.
7423
7423
7424
7424
![ Documentation screenshot] (
7425
- ./images/83883f8e5831c2d68b8986785565f7e12a5389af.png)
7425
+ ./images/83883f8e5831c2d68b8986785565f7e12a5389af.png){width=50%}
7426
7426
7427
7427
---
7428
7428
0 commit comments