File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ this point of time). These two parts of the vector (the one on the stack and
157
157
one on the heap) must agree with each other at all times with regards to
158
158
things like the length, capacity etc.
159
159
160
- When we move ` v ` to ` v2 ` , rust actually does a bitwise copy of the vector
160
+ When we move ` v ` to ` v2 ` , Rust actually does a bitwise copy of the vector
161
161
object ` v ` into the stack allocation represented by ` v2 ` . This shallow copy
162
162
does not create a copy of the heap allocation containing the actual data.
163
163
Which means that there would be two pointers to the contents of the vector
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ These reprs have no effect on a struct.
57
57
58
58
# repr(packed)
59
59
60
- ` repr(packed) ` forces rust to strip any padding, and only align the type to a
60
+ ` repr(packed) ` forces Rust to strip any padding, and only align the type to a
61
61
byte. This may improve the memory footprint, but will likely have other negative
62
62
side-effects.
63
63
Original file line number Diff line number Diff line change @@ -1764,7 +1764,7 @@ pub mod submodule {
1764
1764
# fn main() {}
1765
1765
```
1766
1766
1767
- For a rust program to pass the privacy checking pass, all paths must be valid
1767
+ For a Rust program to pass the privacy checking pass, all paths must be valid
1768
1768
accesses given the two rules above. This includes all use statements,
1769
1769
expressions, types, etc.
1770
1770
You can’t perform that action at this time.
0 commit comments