Skip to content

Commit 4c2274e

Browse files
committed
Fix spelling errors.
1 parent 90bed3f commit 4c2274e

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/doc/reference.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You may also be interested in the [grammar].
2929

3030
# Notation
3131

32-
Rust's grammar is defined over Unicode codepoints, each conventionally denoted
32+
Rust's grammar is defined over Unicode code points, each conventionally denoted
3333
`U+XXXX`, for 4 or more hexadecimal digits `X`. _Most_ of Rust's grammar is
3434
confined to the ASCII range of Unicode, and is described in this document by a
3535
dialect of Extended Backus-Naur Form (EBNF), specifically a dialect of EBNF
@@ -53,7 +53,7 @@ Where:
5353
- Square brackets are used to group rules.
5454
- `LITERAL` is a single printable ASCII character, or an escaped hexadecimal
5555
ASCII code of the form `\xQQ`, in single quotes, denoting the corresponding
56-
Unicode codepoint `U+00QQ`.
56+
Unicode code point `U+00QQ`.
5757
- `IDENTIFIER` is a nonempty string of ASCII letters and underscores.
5858
- The `repeat` forms apply to the adjacent `element`, and are as follows:
5959
- `?` means zero or one repetition
@@ -66,9 +66,9 @@ This EBNF dialect should hopefully be familiar to many readers.
6666

6767
## Unicode productions
6868

69-
A few productions in Rust's grammar permit Unicode codepoints outside the ASCII
69+
A few productions in Rust's grammar permit Unicode code points outside the ASCII
7070
range. We define these productions in terms of character properties specified
71-
in the Unicode standard, rather than in terms of ASCII-range codepoints. The
71+
in the Unicode standard, rather than in terms of ASCII-range code points. The
7272
section [Special Unicode Productions](#special-unicode-productions) lists these
7373
productions.
7474

@@ -91,10 +91,10 @@ production. See [tokens](#tokens) for more information.
9191

9292
## Input format
9393

94-
Rust input is interpreted as a sequence of Unicode codepoints encoded in UTF-8.
94+
Rust input is interpreted as a sequence of Unicode code points encoded in UTF-8.
9595
Most Rust grammar rules are defined in terms of printable ASCII-range
96-
codepoints, but a small number are defined in terms of Unicode properties or
97-
explicit codepoint lists. [^inputformat]
96+
code points, but a small number are defined in terms of Unicode properties or
97+
explicit code point lists. [^inputformat]
9898

9999
[^inputformat]: Substitute definitions for the special Unicode productions are
100100
provided to the grammar verifier, restricted to ASCII range, when verifying the
@@ -147,7 +147,7 @@ comments beginning with exactly one repeated asterisk in the block-open
147147
sequence (`/**`), are interpreted as a special syntax for `doc`
148148
[attributes](#attributes). That is, they are equivalent to writing
149149
`#[doc="..."]` around the body of the comment (this includes the comment
150-
characters themselves, ie `/// Foo` turns into `#[doc="/// Foo"]`).
150+
characters themselves, i.e. `/// Foo` turns into `#[doc="/// Foo"]`).
151151

152152
`//!` comments apply to the parent of the comment, rather than the item that
153153
follows. `//!` comments are usually used to display information on the crate
@@ -330,14 +330,14 @@ Some additional _escapes_ are available in either character or non-raw string
330330
literals. An escape starts with a `U+005C` (`\`) and continues with one of the
331331
following forms:
332332

333-
* An _8-bit codepoint escape_ escape starts with `U+0078` (`x`) and is
334-
followed by exactly two _hex digits_. It denotes the Unicode codepoint
333+
* An _8-bit code point escape_ starts with `U+0078` (`x`) and is
334+
followed by exactly two _hex digits_. It denotes the Unicode code point
335335
equal to the provided hex value.
336-
* A _24-bit codepoint escape_ starts with `U+0075` (`u`) and is followed
336+
* A _24-bit code point escape_ starts with `U+0075` (`u`) and is followed
337337
by up to six _hex digits_ surrounded by braces `U+007B` (`{`) and `U+007D`
338-
(`}`). It denotes the Unicode codepoint equal to the provided hex value.
338+
(`}`). It denotes the Unicode code point equal to the provided hex value.
339339
* A _whitespace escape_ is one of the characters `U+006E` (`n`), `U+0072`
340-
(`r`), or `U+0074` (`t`), denoting the unicode values `U+000A` (LF),
340+
(`r`), or `U+0074` (`t`), denoting the Unicode values `U+000A` (LF),
341341
`U+000D` (CR) or `U+0009` (HT) respectively.
342342
* The _backslash escape_ is the character `U+005C` (`\`) which must be
343343
escaped in order to denote *itself*.
@@ -407,7 +407,7 @@ Some additional _escapes_ are available in either byte or non-raw byte string
407407
literals. An escape starts with a `U+005C` (`\`) and continues with one of the
408408
following forms:
409409

410-
* An _byte escape_ escape starts with `U+0078` (`x`) and is
410+
* A _byte escape_ escape starts with `U+0078` (`x`) and is
411411
followed by exactly two _hex digits_. It denotes the byte
412412
equal to the provided hex value.
413413
* A _whitespace escape_ is one of the characters `U+006E` (`n`), `U+0072`
@@ -697,9 +697,9 @@ in macro rules). In the transcriber, the designator is already known, and so
697697
only the name of a matched nonterminal comes after the dollar sign.
698698

699699
In both the matcher and transcriber, the Kleene star-like operator indicates
700-
repetition. The Kleene star operator consists of `$` and parens, optionally
700+
repetition. The Kleene star operator consists of `$` and parenthesis, optionally
701701
followed by a separator token, followed by `*` or `+`. `*` means zero or more
702-
repetitions, `+` means at least one repetition. The parens are not matched or
702+
repetitions, `+` means at least one repetition. The parenthesis are not matched or
703703
transcribed. On the matcher side, a name is bound to _all_ of the names it
704704
matches, in a structure that mimics the structure of the repetition encountered
705705
on a successful match. The job of the transcriber is to sort that structure
@@ -1209,9 +1209,9 @@ the guarantee that these issues are never caused by safe code.
12091209

12101210
[noalias]: http://llvm.org/docs/LangRef.html#noalias
12111211

1212-
##### Behaviour not considered unsafe
1212+
##### Behavior not considered unsafe
12131213

1214-
This is a list of behaviour not considered *unsafe* in Rust terms, but that may
1214+
This is a list of behavior not considered *unsafe* in Rust terms, but that may
12151215
be undesired.
12161216

12171217
* Deadlocks
@@ -1304,7 +1304,7 @@ specific type, but may implement several different traits, or be compatible with
13041304
several different type constraints.
13051305

13061306
For example, the following defines the type `Point` as a synonym for the type
1307-
`(u8, u8)`, the type of pairs of unsigned 8 bit integers.:
1307+
`(u8, u8)`, the type of pairs of unsigned 8 bit integers:
13081308

13091309
```
13101310
type Point = (u8, u8);
@@ -1958,7 +1958,7 @@ type int8_t = i8;
19581958
19591959
### Crate-only attributes
19601960

1961-
- `crate_name` - specify the this crate's crate name.
1961+
- `crate_name` - specify the crate's crate name.
19621962
- `crate_type` - see [linkage](#linkage).
19631963
- `feature` - see [compiler features](#compiler-features).
19641964
- `no_builtins` - disable optimizing certain code patterns to invocations of
@@ -3432,7 +3432,7 @@ is not a surrogate), represented as a 32-bit unsigned word in the 0x0000 to
34323432
UTF-32 string.
34333433

34343434
A value of type `str` is a Unicode string, represented as an array of 8-bit
3435-
unsigned bytes holding a sequence of UTF-8 codepoints. Since `str` is of
3435+
unsigned bytes holding a sequence of UTF-8 code points. Since `str` is of
34363436
unknown size, it is not a _first-class_ type, but can only be instantiated
34373437
through a pointer type, such as `&str` or `String`.
34383438

0 commit comments

Comments
 (0)