Skip to content

Commit 56eb8b6

Browse files
authored
fix some typos (#1398)
1 parent 8bbee4f commit 56eb8b6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: src/asm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub enum InlineAsmOperand {
101101

102102
The `asm!` macro is implemented in `rustc_builtin_macros` and outputs an `InlineAsm` AST node. The
103103
template string is parsed using `fmt_macros`, positional and named operands are resolved to
104-
explicit operand indicies. Since target information is not available to macro invocations,
104+
explicit operand indices. Since target information is not available to macro invocations,
105105
validation of the registers and register classes is deferred to AST lowering.
106106

107107
## HIR

Diff for: src/backend/monomorph.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ For better incremental build times, the CGU partitioner creates two CGU for each
6363
modules. One is for "stable" i.e. non-generic code and the other is more volatile code i.e.
6464
monomorphized/specialized instances.
6565

66-
For depenencies, consider Crate A and Crate B, such that Crate B depends on Crate A.
66+
For dependencies, consider Crate A and Crate B, such that Crate B depends on Crate A.
6767
The following table lists different scenarios for a function in Crate A that might be used by one
6868
or more modules in Crate B.
6969

Diff for: src/building/bootstrapping.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ artifacts into the appropriate place, skipping the cargo invocation.
231231

232232
### Cross-compiling rustc
233233

234-
*Cross-compiling* is the process of compiling code that will run on another archicture.
234+
*Cross-compiling* is the process of compiling code that will run on another architecture.
235235
For instance, you might want to build an ARM version of rustc using an x86 machine.
236236
Building stage2 `std` is different when you are cross-compiling.
237237

Diff for: src/lang-items.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exists. The marker is the attribute `#[lang = "..."]`, and there are various dif
66
`...`, i.e. various different 'lang items'.
77

88
Many such lang items can be implemented only in one sensible way, such as `add` (`trait
9-
core::ops::Add`) or `future_trait` (`trait core::future::Future`). Others can be overriden to
9+
core::ops::Add`) or `future_trait` (`trait core::future::Future`). Others can be overridden to
1010
achieve some specific goals; for example, you can control your binary's entrypoint.
1111

1212
Features provided by lang items include:
@@ -45,7 +45,7 @@ if let Some(sized_trait_def_id) = tcx.lang_items().sized_trait() {
4545
```
4646

4747
Note that `sized_trait()` returns an `Option`, not the `DefId` itself.
48-
That's because language items are defined in the standard libray, so if someone compiles with
48+
That's because language items are defined in the standard library, so if someone compiles with
4949
`#![no_core]` (or for some lang items, `#![no_std]`), the lang item may not be present.
5050
You can either:
5151

Diff for: src/salsa.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ struct MyDatabase {
196196
runtime : salsa::Runtime<MyDatabase>,
197197
}
198198
///And this trait has to be implemented
199-
impl salsa::Databse for MyDatabase {
199+
impl salsa::Database for MyDatabase {
200200
fn salsa_runtime(&self) -> &salsa::Runtime<MyDatabase> {
201201
&self.runtime
202202
}

0 commit comments

Comments
 (0)