Skip to content

Fix a few spelling errors. #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type int8_t = i8;
// Outer attribute applies to the entire function.
fn some_unused_variables() {
#![allow(unused_variables)]

let x = ();
let y = ();
let z = ();
Expand All @@ -90,7 +90,7 @@ There are three kinds of attributes:
## Active and inert attributes

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

The `cfg` and `cfg_attr` attributes are active. The `test` attribute is inert
Expand Down Expand Up @@ -472,7 +472,7 @@ function for a trait implementation and not to all trait implementations.

> ***Note***: The compiler automatically inlines functions based on internal
> heuristics. Incorrectly inlining functions can actually make the program
> slower, so this attibute should be used with care.
> slower, so this attribute should be used with care.

There are three ways of using the inline attribute:

Expand Down
2 changes: 1 addition & 1 deletion src/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ information. These conventions are documented here.
term is used outside of that chapter, it is usually a link to the section that
has this definition.

An *example term* is an example of a term beind defined.
An *example term* is an example of a term being defined.

* Notes that contain useful information about the state of the book or point out
useful, but mostly out of scope, information are in blockquotes that start
Expand Down
2 changes: 1 addition & 1 deletion src/procedural-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Procedural macros must be defined in a crate with the [crate type] of
`proc-macro`.

> **Note**: When using Cargo, Procedural macro crates are defined with the
> `proc-macro` key in your manfiest:
> `proc-macro` key in your manifest:
>
> ```toml
> [lib]
Expand Down
2 changes: 1 addition & 1 deletion src/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ usages and meanings are defined in the linked pages.
| `%` | Percent | [Remainder][arith]
| `^` | Caret | [Bitwise and Logical XOR][arith]
| `!` | Not | [Bitwise and Logical NOT][negation], [Macro Calls][macros], [Inner Attributes][attributes], [Never Type]
| `&` | And | [Bitwise and Logcal AND][arith], [Borrow], [References]
| `&` | And | [Bitwise and Logical AND][arith], [Borrow], [References]
| <code>\|</code> | Or | [Bitwise and Logical OR][arith], [Closures], [Match]
| `&&` | AndAnd | [Lazy AND][lazy-bool], [Borrow], [References]
| <code>\|\|</code> | OrOr | [Lazy OR][lazy-bool], [Closures]
Expand Down
2 changes: 1 addition & 1 deletion src/type-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ There are no guarantees of data layout made by this representation.
### The `C` Representation

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

Expand Down