Skip to content

Commit 1bec750

Browse files
authored
Merge pull request #462 from waywardmonkeys/fix-typos
Fix typos.
2 parents 5aafa12 + 66ef539 commit 1bec750

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
- [Behavior considered undefined](behavior-considered-undefined.md)
110110
- [Behavior not considered unsafe](behavior-not-considered-unsafe.md)
111111

112-
- [Constant Evalutation](const_eval.md)
112+
- [Constant Evaluation](const_eval.md)
113113

114114
[Appendix: Influences](influences.md)
115115

src/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ certain tools.
372372

373373
Currently `clippy` is the only available lint tool.
374374

375-
They only get checked when the associated tool is active, so if you try to use an `allow` attribute for a nonexistant tool lint, the compiler will not warn about the nonexistant lint until you use the tool.
375+
They only get checked when the associated tool is active, so if you try to use an `allow` attribute for a nonexistent tool lint, the compiler will not warn about the nonexistent lint until you use the tool.
376376

377377
Otherwise, they work just like regular lint attributes:
378378

src/const_eval.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ to be ran.
4545
A _const context_ is one of the following:
4646

4747
* [Array type length expressions]
48-
* Repeat expression length expessions
48+
* Repeat expression length expressions
4949
* The initializer of
5050
* [constants]
5151
* [statics]

src/expressions/block-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Struct {
7272
fn move_by_block_expression() {
7373
let s = Struct;
7474
75-
// Move the value out of `s` in the block expreesion.
75+
// Move the value out of `s` in the block expression.
7676
(&{ s }).borrow_self();
7777
7878
// Fails to execute because `s` is moved out of.

src/items/functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ implemented by executing an illegal instruction.
140140
## Const functions
141141

142142
Functions qualified with the `const` keyword are const functions. _Const
143-
funcions_ can be called from within [const contexts]. When called from a const
143+
functions_ can be called from within [const contexts]. When called from a const
144144
context, the function is interpreted by the compiler at compile time. The
145145
interpretation happens in the environment of the compilation target and not the
146146
host. So `usize` is `32` bits if you are compiling against a `32` bit system,
@@ -156,7 +156,7 @@ number generator as a const function. Calling a const function at compile-time
156156
will always yield the same result as calling it at runtime, even when called
157157
multiple times. There's one exception to this rule: if you are doing complex
158158
floating point operations in extreme situations, then you might get (very
159-
slightly) different results. It is adviseable to not make array lengths and enum
159+
slightly) different results. It is advisable to not make array lengths and enum
160160
discriminants depend on floating point computations.
161161

162162
Exhaustive list of permitted structures in const functions:

src/items/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ valid path. The names added by the [prelude] can be removed by placing the
7878
## Attributes on Modules
7979

8080
Modules, like all items, accept outer attributes. They also accept inner
81-
attibutes: either after `{` for a module with a body, or at the beginning of the
81+
attributes: either after `{` for a module with a body, or at the beginning of the
8282
source file, after the optional BOM and shebang.
8383

8484
The built-in attributes that have meaning on a function are [`cfg`],

0 commit comments

Comments
 (0)