Skip to content

Commit 60bc9ab

Browse files
authored
Spelling: Rename rust to Rust (#1288)
1 parent a10c5be commit 60bc9ab

19 files changed

+35
-35
lines changed

src/about-this-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ please see the corresponding [subsection on writing documentation in this guide]
5959
You might also find the following sites useful:
6060

6161
- [rustc API docs] -- rustdoc documentation for the compiler
62-
- [Forge] -- contains documentation about rust infrastructure, team procedures, and more
63-
- [compiler-team] -- the home-base for the rust compiler team, with description
62+
- [Forge] -- contains documentation about Rust infrastructure, team procedures, and more
63+
- [compiler-team] -- the home-base for the Rust compiler team, with description
6464
of the team procedures, active working groups, and the team calendar.
6565
- [std-dev-guide] -- a similar guide for developing the standard library.
6666

src/backend/codegen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Code generation or "codegen" is the part of the compiler that actually
44
generates an executable binary. Usually, rustc uses LLVM for code generation;
55
there is also support for [Cranelift]. The key is that rustc doesn't implement
6-
codegen itself. It's worth noting, though, that in the rust source code, many
6+
codegen itself. It's worth noting, though, that in the Rust source code, many
77
parts of the backend have `codegen` in their names (there are no hard
88
boundaries).
99

src/backend/monomorph.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- toc -->
44

5-
As you probably know, rust has a very expressive type system that has extensive
5+
As you probably know, Rust has a very expressive type system that has extensive
66
support for generic types. But of course, assembly is not generic, so we need
77
to figure out the concrete types of all the generics before the code can
88
execute.
@@ -23,7 +23,7 @@ The result is fast programs, but it comes at the cost of compile time (creating
2323
all those copies can take a while) and binary size (all those copies might take
2424
a lot of space).
2525

26-
Monomorphization is the first step in the backend of the rust compiler.
26+
Monomorphization is the first step in the backend of the Rust compiler.
2727

2828
## Collection
2929

src/building/bootstrapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ bootstrapping the compiler.
110110
When you use the bootstrap system, you'll call it through `x.py`.
111111
However, most of the code lives in `src/bootstrap`.
112112
`bootstrap` has a difficult problem: it is written in Rust, but yet it is run
113-
before the rust compiler is built! To work around this, there are two
113+
before the Rust compiler is built! To work around this, there are two
114114
components of bootstrap: the main one written in rust, and `bootstrap.py`.
115115
`bootstrap.py` is what gets run by `x.py`. It takes care of downloading the
116116
`stage0` compiler, which will then build the bootstrap binary written in

src/building/compiler-documenting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ documentation for internal compiler items will also be built.
5050

5151
### Compiler Documentation
5252

53-
The documentation for the rust components are found at [rustc doc].
53+
The documentation for the Rust components are found at [rustc doc].
5454

5555
[rustc doc]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/

src/building/how-to-build-and-run.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ Options:
120120
--on-fail CMD command to run on failure
121121
--stage N stage to build
122122
--keep-stage N stage to keep without recompiling
123-
--src DIR path to the root of the rust checkout
123+
--src DIR path to the root of the Rust checkout
124124
-j, --jobs JOBS number of jobs to run in parallel
125125
-h, --help print this help message
126126
```
127127

128128
For hacking, often building the stage 1 compiler is enough, which saves a lot
129129
of time. But for final testing and release, the stage 2 compiler is used.
130130

131-
`./x.py check` is really fast to build the rust compiler.
131+
`./x.py check` is really fast to build the Rust compiler.
132132
It is, in particular, very useful when you're doing some kind of
133133
"type-based refactoring", like renaming a method, or changing the
134134
signature of some function.
@@ -150,7 +150,7 @@ What this command does is the following:
150150
- Build `std` using the stage1 compiler (cannot use incremental)
151151

152152
This final product (stage1 compiler + libs built using that compiler)
153-
is what you need to build other rust programs (unless you use `#![no_std]` or
153+
is what you need to build other Rust programs (unless you use `#![no_std]` or
154154
`#![no_core]`).
155155

156156
The command includes the `-i` switch which enables incremental compilation.

src/building/suggested.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ do not get shared. They will still be cloned multiple times.
199199

200200
[worktrees]: https://git-scm.com/docs/git-worktree
201201

202-
Given you are inside the root directory for your rust repository, you can
202+
Given you are inside the root directory for your Rust repository, you can
203203
create a "linked working tree" in a new "rust2" directory by running
204204
the following command:
205205

src/compiler-src.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ crates, just like a normal Rust crate.
7676

7777
One final thing: [`src/llvm-project`] is a submodule for our fork of LLVM.
7878
During bootstrapping, LLVM is built and the [`compiler/rustc_llvm`] crate
79-
contains rust wrappers around LLVM (which is written in C++), so that the
79+
contains Rust wrappers around LLVM (which is written in C++), so that the
8080
compiler can interface with it.
8181

8282
Most of this book is about the compiler, so we won't have any further
@@ -183,7 +183,7 @@ from `src/tools/`, such as [`tidy`] or [`compiletest`].
183183
## Other
184184

185185
There are a lot of other things in the `rust-lang/rust` repo that are related
186-
to building a full rust distribution. Most of the time you don't need to worry
186+
to building a full Rust distribution. Most of the time you don't need to worry
187187
about them.
188188

189189
These include:

src/compiletest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function found in the `TestCx` implementation block, located in
178178
}
179179

180180
fn check_correct_failure_status(&self, proc_res: &ProcRes) {
181-
- // The value the rust runtime returns on failure
181+
- // The value the Rust runtime returns on failure
182182
- const RUST_ERR: i32 = 101;
183183
- if proc_res.status.code() != Some(RUST_ERR) {
184184
+ let expected_status = Some(self.props.failure_status);

src/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ is modified to move the files from the specified directory to the tool repo root
214214

215215
A `subtree pull` takes all changes since the last `subtree pull`
216216
from the tool repo and adds these commits to the rustc repo along with a merge commit that moves
217-
the tool changes into the specified directory in the rust repository.
217+
the tool changes into the specified directory in the Rust repository.
218218

219219
It is recommended that you always do a push first and get that merged to the tool master branch.
220220
Then, when you do a pull, the merge works without conflicts.

0 commit comments

Comments
 (0)