Skip to content

Commit cf32d63

Browse files
Merge pull request #425 from ehuss/grammar-cleanup
Fix some minor grammar formatting errors.
2 parents ee30f98 + 3dd7abc commit cf32d63

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

src/items/constant-items.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Constant items
22

3-
> **<sup>Syntax</sup>**
4-
> _ConstantItem_ :
3+
> **<sup>Syntax</sup>**\
4+
> _ConstantItem_ :\
55
> &nbsp;&nbsp; `const` [IDENTIFIER] `:` [_Type_] `=` [_Expression_] `;`
66
77
A *constant item* is a named _[constant value]_ which is not associated with a

src/items/generics.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,3 @@ generic parameter.
119119
[tuples]: types.html#tuple-types
120120
[trait object]: types.html#trait-objects
121121
[attributes]: attributes.html
122-
123-
[path]: ../paths.html
124-
[Trait]: traits.html#trait-bounds
125-
[_TypePath_]: paths.html

src/types.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ Because captures are often by reference, the following general rules arise:
558558

559559
## Trait objects
560560

561-
> **<sup>Syntax</sup>**
562-
> _TraitObjectType_ :
561+
> **<sup>Syntax</sup>**\
562+
> _TraitObjectType_ :\
563563
> &nbsp;&nbsp; `dyn`<sup>?</sup> _TypeParamBounds_
564564
565565
A *trait object* is an opaque value of another type that implements a set of
@@ -758,6 +758,4 @@ impl Printable for String {
758758
[object safe]: items/traits.html#object-safety
759759
[issue 47010]: https://github.com/rust-lang/rust/issues/47010
760760
[issue 33140]: https://github.com/rust-lang/rust/issues/33140
761-
[_PATH_]: paths.html
762-
[_LIFETIME_OR_LABEL_]: tokens.html#lifetimes-and-loop-labels
763761
[supertraits]: items/traits.html#supertraits

0 commit comments

Comments
 (0)