Skip to content

Commit d4fe338

Browse files
committed
Fix typos in RFCs 1501-1750
1 parent a932b4a commit d4fe338

20 files changed

+25
-25
lines changed

text/1510-cdylib.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ specifically:
8181
Rust's ephemeral and ill-defined "linkage model" is... well... ill defined and
8282
ephemeral. This RFC is an extension of this model, but it's difficult to reason
8383
about extending that which is not well defined. As a result there could be
84-
unforseen interactions between this output format and where it's used.
84+
unforeseen interactions between this output format and where it's used.
8585

8686
# Alternatives
8787
[alternatives]: #alternatives

text/1535-stable-overflow-checks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It's another rather ad-hoc flag for modifying code generation.
3737

3838
Like other such flags, this applies to the entire code unit,
3939
regardless of monomorphizations. This means that code generation for a
40-
single function can be diferent based on which code unit its
40+
single function can be different based on which code unit it's
4141
instantiated in.
4242

4343
# Alternatives

text/1542-try-from.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[summary]: #summary
88

99
The standard library provides the `From` and `Into` traits as standard ways to
10-
convert between types. However, these traits only support *infallable*
10+
convert between types. However, these traits only support *infallible*
1111
conversions. This RFC proposes the addition of `TryFrom` and `TryInto` traits
1212
to support these use cases in a standard way.
1313

text/1543-integer_atomics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static ATOMIC: Mutex<(u64, u64)> = Mutex::new((0, 0));
7272
#[cfg(target_has_atomic = "64")]
7373
static COUNTER: AtomicU64 = AtomicU64::new(0);
7474
#[cfg(not(target_has_atomic = "64"))]
75-
static COUTNER: AtomicU32 = AtomicU32::new(0);
75+
static COUNTER: AtomicU32 = AtomicU32::new(0);
7676
```
7777

7878
Note that it is not necessary for an architecture to natively support atomic operations for all sizes (`i8`, `i16`, etc) as long as it is able to perform a `compare_exchange` operation with a larger size. All smaller operations can be emulated using that. For example a byte atomic can be emulated by using a `compare_exchange` loop that only modifies a single byte of the value. This is actually how LLVM implements byte-level atomics on MIPS, which only supports word-sized atomics native. Note that the out-of-bounds read is fine here because atomics are aligned and will never cross a page boundary. Since this transformation is performed transparently by LLVM, we do not need to do any extra work to support this.

text/1558-closure-to-fn-coercion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[summary]: #summary
88

99
A closure that does not move, borrow, or otherwise access (capture) local
10-
variables should be coercable to a function pointer (`fn`).
10+
variables should be coercible to a function pointer (`fn`).
1111

1212
# Motivation
1313
[motivation]: #motivation

text/1560-name-resolution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ important later.
6464
a macro.
6565
* Rust has multiple namespaces - types, values, and macros exist in separate
6666
namespaces (some items produce names in multiple namespaces). Imports
67-
refer (implictly) to one or more names in different namespaces.
67+
refer (implicitly) to one or more names in different namespaces.
6868

6969
Note that all top-level (i.e., not parameters, etc.) path segments in a path
7070
other than the last must be in the type namespace, e.g., in `a::b::c`, `a` and
@@ -88,7 +88,7 @@ are resolved in different orders.
8888

8989
Due to macro expansion, it is possible for a name to be resolved and then to
9090
become ambiguous, or (with rules formulated in a certain way) for a name to be
91-
resolved, then to be amiguous, then to be resolvable again (possibly to
91+
resolved, then to be ambiguous, then to be resolvable again (possibly to
9292
different bindings).
9393

9494
Furthermore, there is some flexibility in the order in which macros can be

text/1561-macro-naming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ foo!();
5454
macro! foo { ... }
5555
```
5656

57-
(Note, I'm using a hypothetical `macro!` defintion which I will define in a future
57+
(Note, I'm using a hypothetical `macro!` definition which I will define in a future
5858
RFC. The reader can assume it works much like `macro_rules!`, but with the new
5959
naming scheme).
6060

text/1566-proc-macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ We could keep the existing system or remove procedural macros from Rust.
387387
We could have an AST-based (rather than token-based) system. This has major
388388
backwards compatibility issues.
389389

390-
We could allow pluging in at later stages of compilation, giving macros access
390+
We could allow plugging in at later stages of compilation, giving macros access
391391
to type information, etc. This would allow some really interesting tools.
392392
However, it has some large downsides - it complicates the whole compilation
393393
process (not just the macro system), it pollutes the whole compiler with macro

text/1567-long-error-codes-explanation-normalization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Now let's take a full example:
131131

132132
# Drawbacks
133133

134-
This will make contributing slighty more complex, as there are rules to follow, whereas right now there are none.
134+
This will make contributing slightly more complex, as there are rules to follow, whereas right now there are none.
135135

136136
# Alternatives
137137

text/1574-more-api-documentation-conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[RFC 505] introduced certain conventions around documenting Rust projects. This
1010
RFC augments that one, and a full text of the older one combined with these
11-
modfications is provided below.
11+
modifications is provided below.
1212

1313
[RFC 505]: https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md
1414

0 commit comments

Comments
 (0)