@@ -959,7 +959,7 @@ A String is made up of three parts (shown on the left): \
959959This group of data is stored on the stack.
960960On the right is the memory on the heap that holds the contents.
961961
962- ![ ] ( ./images/1be48e7d2e6765b3e337f4d0738ed7b4944d9f70.png )
962+ ![ ] ( ./images/1be48e7d2e6765b3e337f4d0738ed7b4944d9f70.png ) {width=50%}
963963
964964---
965965
@@ -983,7 +983,7 @@ that are on the stack.
983983
984984We ** do not** copy the data on the heap that the pointer refers to.
985985
986- ![ ] ( ./images/612c87d43da48b3d61bfeb8b21ff9a536d906f18.png )
986+ ![ ] ( ./images/612c87d43da48b3d61bfeb8b21ff9a536d906f18.png ) {width=50%}
987987
988988---
989989
@@ -1007,7 +1007,7 @@ Because Rust invalidates the first variable,
10071007instead of calling it a shallow copy, it's known as a move.
10081008So what actually happens is shown here:
10091009
1010- ![ ] ( ./images/2ba912cafdb15ec5acfd9a364f8e30f2ae585505.png )
1010+ ![ ] ( ./images/2ba912cafdb15ec5acfd9a364f8e30f2ae585505.png ) {width=50%}
10111011
10121012---
10131013
@@ -1414,13 +1414,13 @@ Rather than a reference to the entire `String`,
14141414` hello ` is a reference to a portion of the ` String ` ,
14151415specified in the extra ` [0..5] ` bit.
14161416
1417- ![ ] ( ./images/21b5d08fbed6e1b0268cc7e578185f829711846d.png )
1417+ ![ ] ( ./images/21b5d08fbed6e1b0268cc7e578185f829711846d.png ) {width=50%}
14181418
14191419---
14201420
14211421How do you create slices?
14221422
1423- ![ ] ( ./images/14832e393d9139f7266d12d75253b6000e53a3fa.png )
1423+ ![ ] ( ./images/14832e393d9139f7266d12d75253b6000e53a3fa.png ) {width=50%}
14241424
14251425. . .
14261426
@@ -7422,7 +7422,7 @@ the structure of your public API?
74227422 as if it were defined in the other location instead.
74237423
74247424![ Documentation screenshot] (
7425- ./images/83883f8e5831c2d68b8986785565f7e12a5389af.png)
7425+ ./images/83883f8e5831c2d68b8986785565f7e12a5389af.png){width=50%}
74267426
74277427---
74287428
0 commit comments