Skip to content

Commit 64a0695

Browse files
committed
Fix typos
1 parent 93a816a commit 64a0695

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/rust.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ production. See [tokens](#tokens) for more information.
116116

117117
## Input format
118118

119-
Rust input is interpreted in as a sequence of Unicode codepoints encoded in
119+
Rust input is interpreted as a sequence of Unicode codepoints encoded in
120120
UTF-8. No normalization is performed during input processing. Most Rust
121121
grammar rules are defined in terms of printable ASCII-range codepoints, but
122122
a small number are defined in terms of Unicode properties or explicit
@@ -180,7 +180,7 @@ of the following Unicode characters: `U+0020` (space, `' '`), `U+0009` (tab,
180180
`'\t'`), `U+000A` (LF, `'\n'`), `U+000D` (CR, `'\r'`).
181181

182182
Rust is a "free-form" language, meaning that all forms of whitespace serve
183-
only to separate _tokens_ in the grammar, and have no semantic meaning.
183+
only to separate _tokens_ in the grammar, and have no semantic significance.
184184

185185
A Rust program has identical meaning if each whitespace element is replaced
186186
with any other legal whitespace element, such as a single space character.
@@ -244,7 +244,7 @@ f80 f16 f128
244244
class trait
245245
~~~~~~~~
246246

247-
Any of these may have special meaning in future versions of the language, do
247+
Any of these may have special meaning in future versions of the language, so
248248
are excluded from the `ident` rule.
249249

250250
### Literals
@@ -334,7 +334,7 @@ dec_lit : [ dec_digit | '_' ] + ;
334334
~~~~~~~~
335335

336336
A _number literal_ is either an _integer literal_ or a _floating-point
337-
literal_. The grammar for recognizing the two kinds of literals is mixed
337+
literal_. The grammar for recognizing the two kinds of literals is mixed,
338338
as they are differentiated by suffixes.
339339

340340
##### Integer literals
@@ -416,7 +416,7 @@ symbol : "::" "->"
416416

417417
Symbols are a general class of printable [token](#tokens) that play structural
418418
roles in a variety of grammar productions. They are catalogued here for
419-
completeness as the set of remaining miscellaneous printable token that do not
419+
completeness as the set of remaining miscellaneous printable tokens that do not
420420
otherwise appear as [unary operators](#unary-operator-expressions), [binary
421421
operators](#binary-operator-expressions), [keywords](#keywords) or [reserved
422422
words](#reserved-words).
@@ -438,7 +438,7 @@ type_path_tail : '<' type_expr [ ',' type_expr ] + '>'
438438

439439
A _path_ is a sequence of one or more path components _logically_ separated by
440440
a namespace qualifier (`::`). If a path consists of only one component, it
441-
may refer to either an [item](#items) or a (variable)[#variables) in a local
441+
may refer to either an [item](#items) or a [variable](#variables) in a local
442442
control scope. If a path has multiple components, it refers to an item.
443443

444444
Every item has a _canonical path_ within its [crate](#crates), but the path
@@ -454,7 +454,7 @@ x::y::z;
454454
~~~~
455455

456456
Path components are usually [identifiers](#identifiers), but the trailing
457-
component of a path may be an angle-bracket enclosed list of [type
457+
component of a path may be an angle-bracket-enclosed list of [type
458458
arguments](type-arguments). In [expression](#expressions) context, the type
459459
argument list is given after a final (`::`) namespace qualifier in order to
460460
disambiguate it from a relational expression involving the less-than symbol

0 commit comments

Comments
 (0)