Rollup merge of #31868 - fhahn:capitalize-Rust, r=steveklabnik

This commit is contained in:
Manish Goregaokar 2016-02-25 04:21:11 +05:30
commit a834cd1b70
3 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ this point of time). These two parts of the vector (the one on the stack and
one on the heap) must agree with each other at all times with regards to
things like the length, capacity etc.
When we move `v` to `v2`, rust actually does a bitwise copy of the vector
When we move `v` to `v2`, Rust actually does a bitwise copy of the vector
object `v` into the stack allocation represented by `v2`. This shallow copy
does not create a copy of the heap allocation containing the actual data.
Which means that there would be two pointers to the contents of the vector

View File

@ -57,7 +57,7 @@ These reprs have no effect on a struct.
# repr(packed)
`repr(packed)` forces rust to strip any padding, and only align the type to a
`repr(packed)` forces Rust to strip any padding, and only align the type to a
byte. This may improve the memory footprint, but will likely have other negative
side-effects.

View File

@ -1764,7 +1764,7 @@ pub mod submodule {
# fn main() {}
```
For a rust program to pass the privacy checking pass, all paths must be valid
For a Rust program to pass the privacy checking pass, all paths must be valid
accesses given the two rules above. This includes all use statements,
expressions, types, etc.