Skip to content

Commit e905395

Browse files
authored
Merge pull request #422 from ehuss/spell
Fix a few spelling errors.
2 parents 5e5be5a + d73071e commit e905395

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/attributes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ type int8_t = i8;
7474
// Outer attribute applies to the entire function.
7575
fn some_unused_variables() {
7676
#![allow(unused_variables)]
77-
77+
7878
let x = ();
7979
let y = ();
8080
let z = ();
@@ -90,7 +90,7 @@ There are three kinds of attributes:
9090
## Active and inert attributes
9191

9292
An attribute is either active or inert. During attribute processing, *active
93-
attributes* remove themselves from the thing they are on while *inert attriutes*
93+
attributes* remove themselves from the thing they are on while *inert attributes*
9494
stay on.
9595

9696
The `cfg` and `cfg_attr` attributes are active. The `test` attribute is inert
@@ -472,7 +472,7 @@ function for a trait implementation and not to all trait implementations.
472472
473473
> ***Note***: The compiler automatically inlines functions based on internal
474474
> heuristics. Incorrectly inlining functions can actually make the program
475-
> slower, so this attibute should be used with care.
475+
> slower, so this attribute should be used with care.
476476
477477
There are three ways of using the inline attribute:
478478

src/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ information. These conventions are documented here.
7777
term is used outside of that chapter, it is usually a link to the section that
7878
has this definition.
7979

80-
An *example term* is an example of a term beind defined.
80+
An *example term* is an example of a term being defined.
8181

8282
* Notes that contain useful information about the state of the book or point out
8383
useful, but mostly out of scope, information are in blockquotes that start

src/procedural-macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Procedural macros must be defined in a crate with the [crate type] of
1515
`proc-macro`.
1616

1717
> **Note**: When using Cargo, Procedural macro crates are defined with the
18-
> `proc-macro` key in your manfiest:
18+
> `proc-macro` key in your manifest:
1919
>
2020
> ```toml
2121
> [lib]

src/tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ usages and meanings are defined in the linked pages.
524524
| `%` | Percent | [Remainder][arith]
525525
| `^` | Caret | [Bitwise and Logical XOR][arith]
526526
| `!` | Not | [Bitwise and Logical NOT][negation], [Macro Calls][macros], [Inner Attributes][attributes], [Never Type]
527-
| `&` | And | [Bitwise and Logcal AND][arith], [Borrow], [References]
527+
| `&` | And | [Bitwise and Logical AND][arith], [Borrow], [References]
528528
| <code>\|</code> | Or | [Bitwise and Logical OR][arith], [Closures], [Match]
529529
| `&&` | AndAnd | [Lazy AND][lazy-bool], [Borrow], [References]
530530
| <code>\|\|</code> | OrOr | [Lazy OR][lazy-bool], [Closures]

src/type-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ There are no guarantees of data layout made by this representation.
144144
### The `C` Representation
145145

146146
The `C` representation is designed for dual purposes. One purpose is for
147-
creating types that are interoptable with the C Language. The second purpose is
147+
creating types that are interoperable with the C Language. The second purpose is
148148
to create types that you can soundly performing operations that rely on data
149149
layout such as reinterpreting values as a different type.
150150

0 commit comments

Comments
 (0)