about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2022-07-16 23:45:36 +0200
committerGitHub <noreply@github.com>2022-07-17 06:45:36 +0900
commit39f4d88d48ac375b4f9f1c8e44a9b261b153646a (patch)
tree2d020f5e5f22849863b72ac5c0aae67356973916 /src/doc/rustc-dev-guide
parent749034f4ffea34b78a1c302fe7f2bd048efc30f7 (diff)
downloadrust-39f4d88d48ac375b4f9f1c8e44a9b261b153646a.tar.gz
rust-39f4d88d48ac375b4f9f1c8e44a9b261b153646a.zip
fix some typos (#1398)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/asm.md2
-rw-r--r--src/doc/rustc-dev-guide/src/backend/monomorph.md2
-rw-r--r--src/doc/rustc-dev-guide/src/building/bootstrapping.md2
-rw-r--r--src/doc/rustc-dev-guide/src/lang-items.md4
-rw-r--r--src/doc/rustc-dev-guide/src/salsa.md2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/doc/rustc-dev-guide/src/asm.md b/src/doc/rustc-dev-guide/src/asm.md
index 2c177164e93..cd5430ffdaf 100644
--- a/src/doc/rustc-dev-guide/src/asm.md
+++ b/src/doc/rustc-dev-guide/src/asm.md
@@ -101,7 +101,7 @@ pub enum InlineAsmOperand {
 
 The `asm!` macro is implemented in `rustc_builtin_macros` and outputs an `InlineAsm` AST node. The
 template string is parsed using `fmt_macros`, positional and named operands are resolved to
-explicit operand indicies. Since target information is not available to macro invocations,
+explicit operand indices. Since target information is not available to macro invocations,
 validation of the registers and register classes is deferred to AST lowering.
 
 ## HIR
diff --git a/src/doc/rustc-dev-guide/src/backend/monomorph.md b/src/doc/rustc-dev-guide/src/backend/monomorph.md
index fe61bcb8a3d..416151ca9b7 100644
--- a/src/doc/rustc-dev-guide/src/backend/monomorph.md
+++ b/src/doc/rustc-dev-guide/src/backend/monomorph.md
@@ -63,7 +63,7 @@ For better incremental build times, the CGU partitioner creates two CGU for each
 modules. One is for "stable" i.e. non-generic code and the other is more volatile code i.e.
 monomorphized/specialized instances.
 
-For depenencies, consider Crate A and Crate B, such that Crate B depends on Crate A.
+For dependencies, consider Crate A and Crate B, such that Crate B depends on Crate A.
 The following table lists different scenarios for a function in Crate A that might be used by one
 or more modules in Crate B.
 
diff --git a/src/doc/rustc-dev-guide/src/building/bootstrapping.md b/src/doc/rustc-dev-guide/src/building/bootstrapping.md
index 31f9b61d69d..fd54de20ce3 100644
--- a/src/doc/rustc-dev-guide/src/building/bootstrapping.md
+++ b/src/doc/rustc-dev-guide/src/building/bootstrapping.md
@@ -231,7 +231,7 @@ artifacts into the appropriate place, skipping the cargo invocation.
 
 ### Cross-compiling rustc
 
-*Cross-compiling* is the process of compiling code that will run on another archicture.
+*Cross-compiling* is the process of compiling code that will run on another architecture.
 For instance, you might want to build an ARM version of rustc using an x86 machine.
 Building stage2 `std` is different when you are cross-compiling.
 
diff --git a/src/doc/rustc-dev-guide/src/lang-items.md b/src/doc/rustc-dev-guide/src/lang-items.md
index c5774c43ba4..867c4214477 100644
--- a/src/doc/rustc-dev-guide/src/lang-items.md
+++ b/src/doc/rustc-dev-guide/src/lang-items.md
@@ -6,7 +6,7 @@ exists. The marker is the attribute `#[lang = "..."]`, and there are various dif
 `...`, i.e. various different 'lang items'.
 
 Many such lang items can be implemented only in one sensible way, such as `add` (`trait
-core::ops::Add`) or `future_trait` (`trait core::future::Future`). Others can be overriden to
+core::ops::Add`) or `future_trait` (`trait core::future::Future`). Others can be overridden to
 achieve some specific goals; for example, you can control your binary's entrypoint.
 
 Features provided by lang items include:
@@ -45,7 +45,7 @@ if let Some(sized_trait_def_id) = tcx.lang_items().sized_trait() {
 ```
 
 Note that `sized_trait()` returns an `Option`, not the `DefId` itself.
-That's because language items are defined in the standard libray, so if someone compiles with
+That's because language items are defined in the standard library, so if someone compiles with
 `#![no_core]` (or for some lang items, `#![no_std]`), the lang item may not be present.
 You can either:
 
diff --git a/src/doc/rustc-dev-guide/src/salsa.md b/src/doc/rustc-dev-guide/src/salsa.md
index e0303127e45..afa01eda2df 100644
--- a/src/doc/rustc-dev-guide/src/salsa.md
+++ b/src/doc/rustc-dev-guide/src/salsa.md
@@ -196,7 +196,7 @@ struct MyDatabase {
     runtime : salsa::Runtime<MyDatabase>,
 }
 ///And this trait has to be implemented
-impl salsa::Databse for MyDatabase {
+impl salsa::Database for MyDatabase {
     fn salsa_runtime(&self) -> &salsa::Runtime<MyDatabase> {
         &self.runtime
     }