File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 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
157157one on the heap) must agree with each other at all times with regards to
158158things like the length, capacity etc.
159159
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
161161object ` v ` into the stack allocation represented by ` v2 ` . This shallow copy
162162does not create a copy of the heap allocation containing the actual data.
163163Which 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.
5757
5858# repr(packed)
5959
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
6161byte. This may improve the memory footprint, but will likely have other negative
6262side-effects.
6363
Original file line number Diff line number Diff line change @@ -1764,7 +1764,7 @@ pub mod submodule {
17641764# fn main() {}
17651765```
17661766
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
17681768accesses given the two rules above. This includes all use statements,
17691769expressions, types, etc.
17701770
You can’t perform that action at this time.
0 commit comments