Skip to content

Commit 8570057

Browse files
vallentinsteveklabnik
authored andcommitted
Fixed typos (#513)
1 parent c1314d3 commit 8570057

8 files changed

+11
-11
lines changed

posts/2015-01-09-Rust-1.0-alpha.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ have been approved, and are largely summarized [in the Rust Guidelines](http://a
8484

8585
* **Rust by Example:** The lovely http://rustbyexample.com/ introduction to Rust is now part of the official documentation. *Initiated by Jorge Aparicio*.
8686

87-
* **Additional API documentation:** A lot of work has gone into improving API documentation, both by expanding the overview text and adding examples throughout. *Credit goes to the the entire community, who worked tirelessly to improve these docs*.
87+
* **Additional API documentation:** A lot of work has gone into improving API documentation, both by expanding the overview text and adding examples throughout. *Credit goes to the entire community, who worked tirelessly to improve these docs*.
8888

8989
### What remains to be done?
9090

posts/2016-08-10-Shape-of-errors-to-come.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ of what is going on.
4242
The key insight is putting your source code front and center - everything you see in the output
4343
builds on _your_ code.
4444
By using the code you wrote as the context, we give you an easy way to know at a glance
45-
where the issue is occuring.
45+
where the issue is occurring.
4646

4747
![Picture of new constant eval error][new_errors2]
4848

4949
*Constant evaluation errors*
5050

5151
Next, once we know the location, we need to explain what is going wrong. We do this by labeling
5252
points of interest in the code that helped explain
53-
the error. The most obvious place to begin labeling is where the error has occured. It's the
53+
the error. The most obvious place to begin labeling is where the error has occurred. It's the
5454
"what" of the error.
5555

5656
In this example, you can see how we use these primary labels. With them, your eyes can see both the
@@ -64,7 +64,7 @@ to quickly spot the error and understand what's going wrong.
6464
*Mismatch with trait requirement error*
6565

6666
The source of the error is not the only point of interest. There are often other points of interest
67-
that help describe "why" an error is occuring. By reading these secondary labels,
67+
that help describe "why" an error is occurring. By reading these secondary labels,
6868
you can understand better what is going wrong. These labels are shown in the same order they appear
6969
in your code, again, to ensure you're always able to, at a glance, understand where you are.
7070

posts/2017-03-02-lang-ergonomics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ One route for strongly limiting context-dependence is employing *conventions*,
109109
in which the compiler is simply assuming a default unless told otherwise. Often
110110
such conventions are universal and well-known, meaning that you don't need to
111111
know anything about the rest of the code to know what they are. A good example
112-
of this technique in Rust is the the fact that `mod foo;` looks for `foo.rs` (or
112+
of this technique in Rust is the fact that `mod foo;` looks for `foo.rs` (or
113113
`foo/mod.rs`) by default.
114114

115115
One final point. "Implicitness" is often relative to where the language is

posts/2018-06-21-Rust-1.27.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ While stable Rust has always been able to take advantage of
7878
autovectorization, sometimes, the compiler just isn't smart enough to realize
7979
that we can do something like this. Additionally, not every CPU has these
8080
features, and so LLVM may not use them so your program can be used on a wide
81-
variety of hardware. So, in Rust 1.27, the addtion of [the `std::arch`
81+
variety of hardware. So, in Rust 1.27, the addition of [the `std::arch`
8282
module] allows us to use these kinds of instructions *directly*, which
8383
means we don't need to rely on a smart compiler. Additionally, it includes
8484
some features that allow us to choose a particular implementation based
@@ -102,7 +102,7 @@ fn foo() {
102102
```
103103

104104
Here, we use `cfg` flags to choose the correct version based on the machine
105-
we're targetting; on `x86` we use that version, and on `x86_64` we use
105+
we're targeting; on `x86` we use that version, and on `x86_64` we use
106106
its version. We can also choose at runtime:
107107

108108
```rust

posts/2018-10-19-Update-on-crates.io-incident.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ policy is:
104104
> stable.
105105
106106
> A more case-by-case policy would be very hard to get right, and would almost
107-
> certainly result in bad mistakes and and regular controversies.
107+
> certainly result in bad mistakes and regular controversies.
108108
109109
> Instead, we are going to stick to a first-come, first-served system. If someone
110110
> wants to take over a package, and the previous owner agrees, the existing

posts/2019-05-14-Rust-1.34.2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ of Rust 1.34.0. This point release **destabilizes** it, preventing any code on
3636
the stable and beta channels to implement or use it, awaiting future plans that
3737
will be discussed in [issue #60784][60784].
3838

39-
An in-depth explaination of this issue was posted in yesterday's [security
39+
An in-depth explanation of this issue was posted in yesterday's [security
4040
advisory][ml]. The assigned CVE for the vulnerability is [CVE-2019-12083][cve].
4141

4242
[ml]: https://groups.google.com/d/msg/rustlang-security-announcements/aZabeCMUv70/-2Y6-SL6AQAJ

posts/2019-05-23-Rust-1.35.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn main() {
170170

171171
In 1.35.0, a number of APIs have become stable.
172172

173-
In addition, some implementations were added and other changes occured as well.
173+
In addition, some implementations were added and other changes occurred as well.
174174
See the [detailed release notes][notes] for more details.
175175

176176
#### Copy the sign of a floating point number onto another

posts/2019-09-30-Security-advisory-for-cargo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Rust 1.31.0 [introduced a new feature of Cargo][1] where one of the optional key
2525
serde1 = { version = "1.0", features = ['derive'], package = "serde" }
2626
```
2727

28-
It's the addition of the `package` key that causes Cargo to compile the crate differently. This feature was [first implemented][3] in Rust 1.26.0, but it was unstable at the time. For Rust 1.25.0 and prior, however, Cargo would ignore the `package` key and and interpret the dependency line as if it were:
28+
It's the addition of the `package` key that causes Cargo to compile the crate differently. This feature was [first implemented][3] in Rust 1.26.0, but it was unstable at the time. For Rust 1.25.0 and prior, however, Cargo would ignore the `package` key and interpret the dependency line as if it were:
2929

3030
```toml
3131
serde1 = { version = "1.0", features = ['derive'] }

0 commit comments

Comments
 (0)