Skip to content

Commit 090c015

Browse files
authored
Merge pull request #668 from hawkinsw/oxford_commas
Fix #664: Review Oxford comma usage.
2 parents abe11b6 + af1cf6d commit 090c015

19 files changed

+32
-31
lines changed

src/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
> &nbsp;&nbsp; | `=` [_LiteralExpression_]<sub>_without suffix_</sub>
1717
1818
An _attribute_ is a general, free-form metadatum that is interpreted according
19-
to name, convention, and language and compiler version. Attributes are modeled
19+
to name, convention, language, and compiler version. Attributes are modeled
2020
on Attributes in [ECMA-335], with the syntax coming from [ECMA-334] \(C#).
2121

2222
_Inner attributes_, written with a bang (`!`) after the hash (`#`), apply to the

src/conditional-compilation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*Conditionally compiled source code* is source code that may or may not be
2626
considered a part of the source code depending on certain conditions. <!-- This
2727
definition is sort of vacuous --> Source code can be conditionally compiled
28-
using [attributes], [`cfg`] and [`cfg_attr`], and the built-in [`cfg` macro].
28+
using the [attributes] [`cfg`] and [`cfg_attr`] and the built-in [`cfg` macro].
2929
These conditions are based on the target architecture of the compiled crate,
3030
arbitrary values passed to the compiler, and a few other miscellaneous things
3131
further described below in detail.

src/const_eval.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ to be run.
3737
* Index expressions, [array indexing] or [slice] with a `usize`.
3838
* [Range expressions].
3939
* [Closure expressions] which don't capture variables from the environment.
40-
* Built in [negation], [arithmetic, logical], [comparison] or [lazy boolean]
41-
operators used on integer and floating point types, `bool` and `char`.
40+
* Built-in [negation], [arithmetic], [logical], [comparison] or [lazy boolean]
41+
operators used on integer and floating point types, `bool`, and `char`.
4242
* Shared [borrow]s, except if applied to a type with [interior mutability].
4343
* The [dereference operator].
4444
* [Grouped] expressions.
@@ -57,7 +57,7 @@ A _const context_ is one of the following:
5757
* [statics]
5858
* [enum discriminants]
5959

60-
[arithmetic, logical]: expressions/operator-expr.md#arithmetic-and-logical-binary-operators
60+
[arithmetic]: expressions/operator-expr.md#arithmetic-and-logical-binary-operators
6161
[array expressions]: expressions/array-expr.md
6262
[array indexing]: expressions/array-expr.md#array-and-slice-indexing-expressions
6363
[array indexing]: expressions/array-expr.md#array-and-slice-indexing-expressions
@@ -84,6 +84,7 @@ A _const context_ is one of the following:
8484
[lazy boolean]: expressions/operator-expr.md#lazy-boolean-operators
8585
[let statements]: statements.md#let-statements
8686
[literals]: expressions/literal-expr.md
87+
[logical]: expressions/operator-expr.md#arithmetic-and-logical-binary-operators
8788
[negation]: expressions/operator-expr.md#negation-operators
8889
[overflow]: expressions/operator-expr.md#overflow
8990
[paths]: expressions/path-expr.md

src/crates-and-source-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ crate in binary form: either an executable or some sort of
2929
library.[^cratesourcefile]
3030

3131
A _crate_ is a unit of compilation and linking, as well as versioning,
32-
distribution and runtime loading. A crate contains a _tree_ of nested
32+
distribution, and runtime loading. A crate contains a _tree_ of nested
3333
[module] scopes. The top level of this tree is a module that is
3434
anonymous (from the point of view of paths within the module) and any item
3535
within a crate has a canonical [module path] denoting its location

src/dynamically-sized-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ types">DSTs</abbr>. Such types can only be used in certain cases:
2020
last field, this makes the struct itself a
2121
<abbr title="dynamically sized type">DST</abbr>.
2222

23-
Notably: [variables], function parameters, [const] and [static] items must be
23+
> **Note**: [variables], function parameters, [const] items, and [static] items must be
2424
`Sized`.
2525

2626
[sized]: special-types-and-traits.md#sized

src/expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ a few specific cases:
265265

266266
* Before an expression used as a [statement].
267267
* Elements of [array expressions], [tuple expressions], [call expressions],
268-
tuple-style [struct] and [enum variant] expressions.
268+
and tuple-style [struct] and [enum variant] expressions.
269269
<!--
270270
These were likely stabilized inadvertently.
271271
See https://github.com/rust-lang/rust/issues/32796 and

src/expressions/block-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ expression in the following situations:
180180
* Loop bodies ([`loop`], [`while`], [`while let`], and [`for`]).
181181
* Block expressions used as a [statement].
182182
* Block expressions as elements of [array expressions], [tuple expressions],
183-
[call expressions], tuple-style [struct] and [enum variant] expressions.
183+
[call expressions], and tuple-style [struct] and [enum variant] expressions.
184184
* A block expression as the tail expression of another block expression.
185185
<!-- Keep list in sync with expressions.md -->
186186

src/expressions/loop-expr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ is equivalent to
181181
}
182182
```
183183

184-
`IntoIterator`, `Iterator` and `Option` are always the standard library items
184+
`IntoIterator`, `Iterator`, and `Option` are always the standard library items
185185
here, not whatever those names resolve to in the current scope. The variable
186-
names `next`, `iter` and `val` are for exposition only, they do not actually
186+
names `next`, `iter`, and `val` are for exposition only, they do not actually
187187
have names the user can type.
188188

189189
> **Note**: that the outer `match` is used to ensure that any

src/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ provides three kinds of material:
55

66
- Chapters that informally describe each language construct and their use.
77
- Chapters that informally describe the memory model, concurrency model,
8-
runtime services, linkage model and debugging facilities.
8+
runtime services, linkage model, and debugging facilities.
99
- Appendix chapters providing rationale and references to languages that
1010
influenced the design.
1111

src/items/associated-items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Shorthand | Equivalent
133133
`&'lifetime self` | `self: &'lifetime Self`
134134
`&'lifetime mut self` | `self: &'lifetime mut Self`
135135

136-
> Note: Lifetimes can be and usually are elided with this shorthand.
136+
> **Note**: Lifetimes can be, and usually are, elided with this shorthand.
137137
138138
If the `self` parameter is prefixed with `mut`, it becomes a mutable variable,
139139
similar to regular parameters using a `mut` [identifier pattern]. For example:

0 commit comments

Comments
 (0)