Skip to content

Commit c274abd

Browse files
committed
Fix typos in RFCs 1-250
1 parent 4514182 commit c274abd

8 files changed

+13
-13
lines changed

text/0019-opt-in-builtin-traits.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ opt-in. There are two main reasons for my concern:
7171

7272
To elaborate on those two points: With respect to parallelization: for
7373
the most part, Rust types are threadsafe "by default". To make
74-
something non-threadsafe, you must employ unsychronized interior
75-
mutability (e.g., `Cell`, `RefCell`) or unsychronized shared ownership
74+
something non-threadsafe, you must employ unsynchronized interior
75+
mutability (e.g., `Cell`, `RefCell`) or unsynchronized shared ownership
7676
(`Rc`). In both cases, there are also synchronized variants available
7777
(`Mutex`, `Arc`, etc). This implies that we can make APIs to enable
7878
intra-task parallelism and they will work ubiquitously, so long as
@@ -116,7 +116,7 @@ All three of these (`Snapshot`, `NoManaged`, `NoDrop`) can be easily
116116
defined using traits with default impls.
117117

118118
A final, somewhat weaker, motivator is aesthetics. Ownership has allowed
119-
us to move threading almost entirely into libaries. The one exception
119+
us to move threading almost entirely into libraries. The one exception
120120
is that the `Send` and `Share` types remain built-in. Opt-in traits
121121
makes them *less* built-in, but still requires custom logic in the
122122
"impl matching" code as well as special safety checks when

text/0040-libstd-facade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ algorithms apart from the default sorting algorithm.
164164
#### FromStr
165165

166166
This trait and module are left out because strings are left out. All types in
167-
libmini can have their implemention of FromStr in the crate which implements
167+
libmini can have their implementation of FromStr in the crate which implements
168168
strings
169169

170170
#### Floats

text/0048-traits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Note that there is some interaction with the distinction between input
231231
and output type parameters discussed in the previous
232232
example. Specifically, we must never *infer* the value of the `Self`
233233
type parameter based on the impls in scope. This is because it would
234-
cause *crate concatentation* to potentially lead to compilation errors
234+
cause *crate concatenation* to potentially lead to compilation errors
235235
in the form of inference failure.
236236

237237
## Properties
@@ -242,7 +242,7 @@ There are important properties I would like to guarantee:
242242
values for all of its type parameters, there should always be at
243243
most one applicable impl. This should remain true even when unknown,
244244
additional crates are loaded.
245-
- **Crate concatentation:** It should always be possible to take two
245+
- **Crate concatenation:** It should always be possible to take two
246246
creates and combine them without causing compilation errors. This
247247
property
248248

text/0155-anonymous-impl-only-in-same-module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ and methods of a struct should be defined nearby.
101101
I propose three changes to the language:
102102

103103
- `impl` on multiple-ident paths such as `impl mymod::MyStruct` is disallowed.
104-
Since this currently suprises the user by having absolutely no effect for
104+
Since this currently surprises the user by having absolutely no effect for
105105
static methods, support for this is already broken.
106106
- `impl MyStruct` must occur in the same module that `MyStruct` is defined.
107107
This is to prevent the above problems with `impl`-across-modules.

text/0169-use-path-as-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Summary
66

77
Change the rebinding syntax from `use ID = PATH` to `use PATH as ID`,
8-
so that paths all line up on the left side, and imported identifers
8+
so that paths all line up on the left side, and imported identifiers
99
are all on the right side. Also modify `extern crate` syntax
1010
analogously, for consistency.
1111

text/0194-cfg-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ proposed names read better with the function-like syntax and are consistent
8585
with `Iterator::all` and `Iterator::any`.
8686

8787
Issue [#2119](https://github.com/rust-lang/rust/issues/2119) proposed the
88-
addition of `||` and `&&` operators and parantheses to the attribute syntax
88+
addition of `||` and `&&` operators and parentheses to the attribute syntax
8989
to result in something like `#[cfg(a || (b && c)]`. I don't favor this proposal
9090
since it would result in a major change to the attribute syntax for relatively
9191
little readability gain.

text/0195-associated-items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ impl<'a, T> Sliceable for &'a Vec<T> {
12631263
But then there's a difficult question:
12641264

12651265
```
1266-
fn dice<A>(a: &A) -> &A::Slice where &A: Slicable {
1266+
fn dice<A>(a: &A) -> &A::Slice where &A: Sliceable {
12671267
a // is this allowed?
12681268
}
12691269
```

text/0218-empty-struct-with-braces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ completed, one can then take the next step of adding the actual field.
9898
# Drawbacks
9999

100100
Some people like "There is only one way to do it." But, there is
101-
precendent in Rust for violating "one way to do it" in favor of
101+
precedent in Rust for violating "one way to do it" in favor of
102102
syntactic convenience or regularity; see
103103
the [Precedent for flexible syntax in Rust] appendix.
104104
Also, see the [Always Require Braces] alternative below.
@@ -311,7 +311,7 @@ adoption of [Rust RFC 25].
311311

312312
## Precedent for flexible syntax in Rust
313313

314-
There is precendent in Rust for violating "one way to do it" in favor
314+
There is precedent in Rust for violating "one way to do it" in favor
315315
of syntactic convenience or regularity.
316316

317317
For example, one can often include an optional trailing comma, for
@@ -358,7 +358,7 @@ is not a democracy, the number of commenters should not matter anyway.)
358358
* "Frequently start out with an empty struct and add fields as I need them." ==> Favors: This RFC or Always Require Braces
359359
* "Foo{} suggests is constructing something that it's not; all uses of the value `Foo` are indistinguishable from each other" ==> Favors: Status Quo
360360
* "I find it strange anyone would prefer `let x = Foo{};` over `let x = Foo;`" ==> Favors Status Quo; strongly opposes Always Require Braces.
361-
* "I agree that 'instantiation-should-follow-declation', that is, structs declared `;, (), {}` should only be instantiated [via] `;, (), { }` respectively" ==> Opposes leniency of this RFC in that it allows expression to use include or omit `{}` on an empty struct, regardless of declaration form, and vice-versa.
361+
* "I agree that 'instantiation-should-follow-declaration', that is, structs declared `;, (), {}` should only be instantiated [via] `;, (), { }` respectively" ==> Opposes leniency of this RFC in that it allows expression to use include or omit `{}` on an empty struct, regardless of declaration form, and vice-versa.
362362
* "The code generation argument is reasonable, but I wouldn't want to force noisier syntax on all 'normal' code just to make macros work better." ==> Favors: This RFC
363363

364364
[Always Require Braces]: #always-require-braces

0 commit comments

Comments
 (0)