From b8f512d22044fe9d311c392eb1f96faff28b7f5d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 20 Jul 2014 17:59:41 +0200 Subject: [PATCH 1/4] guide-runtime.md: remove redundant verb --- src/doc/guide-runtime.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide-runtime.md b/src/doc/guide-runtime.md index 1367bdc07555f..24b5834ef7c08 100644 --- a/src/doc/guide-runtime.md +++ b/src/doc/guide-runtime.md @@ -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 From c2bf0ed4ddfbcab041fd74b0ce4d2728c1a8c12f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 21 Jul 2014 23:45:52 +0200 Subject: [PATCH 2/4] guide-testing.md: add auxiliary verb --- src/doc/guide-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide-testing.md b/src/doc/guide-testing.md index 1d6513972a6d2..6fb198fbd2ba4 100644 --- a/src/doc/guide-testing.md +++ b/src/doc/guide-testing.md @@ -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. From 2c7ef330fc9445d9411ecfb68fad6b7f0ce00874 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 6 Aug 2014 21:21:12 +0200 Subject: [PATCH 3/4] guide-unsafe.md: fix noun --- src/doc/guide-unsafe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide-unsafe.md b/src/doc/guide-unsafe.md index 8349c8ebcb648..34cec8d980a3d 100644 --- a/src/doc/guide-unsafe.md +++ b/src/doc/guide-unsafe.md @@ -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 be a pointer 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 From 061cdec5dfefc91ce2ad00cef1435ce9b7b1db74 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 12 Aug 2014 21:30:02 +0200 Subject: [PATCH 4/4] guide-unsafe.md: fix wording Following a suggestion by Huon Wilson. --- src/doc/guide-unsafe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide-unsafe.md b/src/doc/guide-unsafe.md index 34cec8d980a3d..2ff6305548083 100644 --- a/src/doc/guide-unsafe.md +++ b/src/doc/guide-unsafe.md @@ -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 pointer 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