From d73071e0b9b097457cf70b0c850bbbfa27560c46 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 20 Sep 2018 14:37:36 -0700 Subject: [PATCH] Fix a few spelling errors. --- src/attributes.md | 6 +++--- src/introduction.md | 2 +- src/procedural-macros.md | 2 +- src/tokens.md | 2 +- src/type-layout.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/attributes.md b/src/attributes.md index 62d50ea57..86db264c0 100644 --- a/src/attributes.md +++ b/src/attributes.md @@ -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 = (); @@ -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 @@ -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: diff --git a/src/introduction.md b/src/introduction.md index 7a874c33d..723fac9a4 100644 --- a/src/introduction.md +++ b/src/introduction.md @@ -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 diff --git a/src/procedural-macros.md b/src/procedural-macros.md index a5d078357..f8022e701 100644 --- a/src/procedural-macros.md +++ b/src/procedural-macros.md @@ -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] diff --git a/src/tokens.md b/src/tokens.md index 204b9d99a..1c9778365 100644 --- a/src/tokens.md +++ b/src/tokens.md @@ -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] | \| | Or | [Bitwise and Logical OR][arith], [Closures], [Match] | `&&` | AndAnd | [Lazy AND][lazy-bool], [Borrow], [References] | \|\| | OrOr | [Lazy OR][lazy-bool], [Closures] diff --git a/src/type-layout.md b/src/type-layout.md index db5c83942..4dce0b48f 100644 --- a/src/type-layout.md +++ b/src/type-layout.md @@ -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.