auto merge of #16438 : phi-gamma/rust/doc-fixes, r=brson
Fixes wording in the *runtime*, *testing* and *unsafe* guides.
This commit is contained in:
commit
0f09f51c61
@ -128,7 +128,7 @@ itself, yet again implying that they are not defined in the standard library.
|
||||
The full complement of runtime features is defined by the [`Runtime`
|
||||
trait](std/rt/trait.Runtime.html) and the [`Task`
|
||||
struct](std/rt/task/struct.Task.html). A `Task` is constant among all runtime
|
||||
implementations, but each runtime implements has its own implementation of the
|
||||
implementations, but each runtime has its own implementation of the
|
||||
`Runtime` trait.
|
||||
|
||||
The local `Task` stores the runtime value inside of itself, and then ownership
|
||||
|
@ -198,7 +198,7 @@ per-iteration speed of.
|
||||
|
||||
For benchmarks relating to processing/generating data, one can set the
|
||||
`bytes` field to the number of bytes consumed/produced in each
|
||||
iteration; this will used to show the throughput of the benchmark.
|
||||
iteration; this will be used to show the throughput of the benchmark.
|
||||
This must be the amount used in each iteration, *not* the total
|
||||
amount.
|
||||
|
||||
|
@ -137,7 +137,7 @@ explicitly with, respectively, `value as *const T` and `value as *mut T`).
|
||||
|
||||
Going the opposite direction, from `*const` to a reference `&`, is not
|
||||
safe. A `&T` is always valid, and so, at a minimum, the raw pointer
|
||||
`*const T` has to be a valid to a valid instance of type `T`. Furthermore,
|
||||
`*const T` has to point to a valid instance of type `T`. Furthermore,
|
||||
the resulting pointer must satisfy the aliasing and mutability laws of
|
||||
references. The compiler assumes these properties are true for any
|
||||
references, no matter how they are created, and so any conversion from
|
||||
|
Loading…
x
Reference in New Issue
Block a user