Skip to content

Commit 2b78d7b

Browse files
Merge pull request #3474 from xzmeng/fix-typos
Fix typos
2 parents 321d8e4 + 1ddcc5f commit 2b78d7b

17 files changed

+19
-19
lines changed

text/0446-es6-unicode-escapes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Stage 2).
7777
* Status quo: don’t change the escaping syntax.
7878
* Add the new `\u{…}` syntax, but also keep the existing `\u` and `\U` syntax.
7979
This is what ES 6 does, but only to keep compatibility with ES 5.
80-
We don’t have that constaint pre-1.0.
80+
We don’t have that constraint pre-1.0.
8181

8282
# Unresolved questions
8383

text/0501-consistent_no_prelude_attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ Finally, the old attribute name should emit a deprecated warning, and be removed
7575
- Keep the current behavior
7676
- Remove the `#[no_implicit_prelude]` attribute all together, instead forcing users to use
7777
`#[no_std]` in combination with `extern crate std;` and `use std::prelude::*`.
78-
- Generalize preludes more to allow custom ones, which might superseed the attributes from this RFC.
78+
- Generalize preludes more to allow custom ones, which might supersede the attributes from this RFC.

text/1122-language-semver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Known areas where change is expected include the following:
181181

182182
- Destructors semantics:
183183
- We plan to stop zeroing data and instead use marker flags on the stack,
184-
as specified in [RFC 320]. This may affect destructors that rely on ovewriting
184+
as specified in [RFC 320]. This may affect destructors that rely on overwriting
185185
memory or using the `unsafe_no_drop_flag` attribute.
186186
- Currently, panicking in a destructor can cause unintentional memory
187187
leaks and other poor behavior (see [#14875], [#16135]). We are

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub mod option;
192192
/// assert_eq!(&[5], slice);
193193
/// ```
194194
///
195-
/// A more compelx example. In this case, it’s the same example, because this
195+
/// A more complex example. In this case, it’s the same example, because this
196196
/// is a pretty trivial function, but use your imagination.
197197
///
198198
/// ```

text/1717-dllimport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ meaning that it will be common that these attributes are left off by accident.
109109
- Instead of enhancing `#[link]`, a `#[linked_from = "foo"]` annotation could be added.
110110
This has the drawback of not being able to handle native libraries whose
111111
name is unpredictable across platforms in an easy fashion, however.
112-
Additionally, it adds an extra attribute to the comipler that wasn't known
112+
Additionally, it adds an extra attribute to the compiler that wasn't known
113113
previously.
114114

115115
- Support a `#[dllimport]` on extern blocks (or individual symbols, or both).

text/1733-trait-alias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ using the `trait` keyword to define alias on *lifetimes* seems a wrong design ch
362362
very consistent.
363363

364364
If we chose another keyword, like `constraint`, I feel less concerned and it would open further
365-
opportunies – see the `ConstraintKinds` alternative discussion above.
365+
opportunities – see the `ConstraintKinds` alternative discussion above.
366366

367367
## Which bounds need to be repeated when using a trait alias?
368368

text/2126-path-clarity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ And in addition there's been extensive discussion on internals:
637637

638638
- [Revisiting Rust’s modules](https://internals.rust-lang.org/t/revisiting-rusts-modules/5628) - aturon, Jul 26
639639
- [Revisiting Rust’s modules, part 2](https://internals.rust-lang.org/t/revisiting-rust-s-modules-part-2/5700?u=carols10cents) - aturon, Aug 2
640-
- [Revisting Modules, take 3](https://internals.rust-lang.org/t/revisiting-modules-take-3/5715?u=carols10cents) - withoutboats, Aug 4
640+
- [Revisiting Modules, take 3](https://internals.rust-lang.org/t/revisiting-modules-take-3/5715?u=carols10cents) - withoutboats, Aug 4
641641
- [pre-RFC: inline mod](https://internals.rust-lang.org/t/pre-rfc-inline-mod/5716?u=carols10cents) - ahmedcharles, Aug 4
642642
- [My Preferred Module System (a fusion of earlier proposals)](https://internals.rust-lang.org/t/my-preferred-module-system-a-fusion-of-earlier-proposals/5718?u=carols10cents) - phaylon, Aug 5
643643
- [[Pre-RFC] Yet another take on modules](https://internals.rust-lang.org/t/pre-rfc-yet-another-take-on-modules/5717?u=carols10cents) - newpavlov, Aug 5

text/2906-cargo-workspace-deduplicate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ implicit substitutions, if any, will be invisible to users of `cargo metadata`.
447447
## Effect on `cargo read-manifest`
448448

449449
Similar to `cargo metadata`, the `cargo read-manifest` command will perform all
450-
necessary subsitutions when presenting the output as JSON.
450+
necessary substitutions when presenting the output as JSON.
451451

452452
## Effect resolution for relative `path` dependencies
453453

text/2912-rust-analyzer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ However, there are a number of practical concerns with taking that approach. One
156156

157157
Further, the "reimplement" approach would represent a constraint on the ordering in which we do our work. With the design proposed in this RFC, for example, rust-analyzer is able to make use of the chalk library already. This is only possible because rust-analyzer has a "stub" version of Rust's name resolution engine and type checker embedded in it -- this type checker is not perfect, but it's good enough to drive chalk and gain useful experience. This allows us to create an end-to-end IDE user experience sooner, in effect.
158158

159-
In contrast, if we were to try and rebuild rust-analyzer within rustc, even if we had rustc adopt chalk or some other IDE-friendly trait resolution algorithm, that would not be of use to IDE users until we had also upgraded the name resolution algorithm and type checker to be IDE friendly. In short, having a "prototype" version of these algorithms that lives in rust-anaylzer is both a pro and a con: it means we have to maintain two versions, but it means users get benefits faster and developers can experiment more freely.
159+
In contrast, if we were to try and rebuild rust-analyzer within rustc, even if we had rustc adopt chalk or some other IDE-friendly trait resolution algorithm, that would not be of use to IDE users until we had also upgraded the name resolution algorithm and type checker to be IDE friendly. In short, having a "prototype" version of these algorithms that lives in rust-analyzer is both a pro and a con: it means we have to maintain two versions, but it means users get benefits faster and developers can experiment more freely.
160160

161161
## Require feature parity between the existing RLS and rust-analyzer
162162

text/3013-conditional-compilation-checking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ the risks is that a condition may contain misspelled identifiers, or may use ide
1313
obsolete or have been removed from a product. For example:
1414

1515
```rust
16-
#[cfg(feature = "widnows")]
16+
#[cfg(feature = "windows")]
1717
fn do_windows_thing() { /* ... */ }
1818
```
1919

0 commit comments

Comments
 (0)