From 3dd7abc7ead5d3b8704f332aef177e7b847bac5b Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sun, 23 Sep 2018 12:45:01 -0700 Subject: [PATCH] Fix some minor grammar formatting errors. --- src/items/constant-items.md | 4 ++-- src/items/generics.md | 4 ---- src/types.md | 6 ++---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/items/constant-items.md b/src/items/constant-items.md index 4762082b0..a347d5db4 100644 --- a/src/items/constant-items.md +++ b/src/items/constant-items.md @@ -1,7 +1,7 @@ # Constant items -> **Syntax** -> _ConstantItem_ : +> **Syntax**\ +> _ConstantItem_ :\ >    `const` [IDENTIFIER] `:` [_Type_] `=` [_Expression_] `;` A *constant item* is a named _[constant value]_ which is not associated with a diff --git a/src/items/generics.md b/src/items/generics.md index 7f5a33cfa..b52c68b14 100644 --- a/src/items/generics.md +++ b/src/items/generics.md @@ -119,7 +119,3 @@ generic parameter. [tuples]: types.html#tuple-types [trait object]: types.html#trait-objects [attributes]: attributes.html - -[path]: ../paths.html -[Trait]: traits.html#trait-bounds -[_TypePath_]: paths.html diff --git a/src/types.md b/src/types.md index a39ba2781..ec7e22113 100644 --- a/src/types.md +++ b/src/types.md @@ -558,8 +558,8 @@ Because captures are often by reference, the following general rules arise: ## Trait objects -> **Syntax** -> _TraitObjectType_ : +> **Syntax**\ +> _TraitObjectType_ :\ >    `dyn`? _TypeParamBounds_ A *trait object* is an opaque value of another type that implements a set of @@ -758,6 +758,4 @@ impl Printable for String { [object safe]: items/traits.html#object-safety [issue 47010]: https://github.com/rust-lang/rust/issues/47010 [issue 33140]: https://github.com/rust-lang/rust/issues/33140 -[_PATH_]: paths.html -[_LIFETIME_OR_LABEL_]: tokens.html#lifetimes-and-loop-labels [supertraits]: items/traits.html#supertraits