Skip to content

Commit b2d1124

Browse files
committed
Trim trailing whitespace and ensure files end with a newline.
1 parent f135b9a commit b2d1124

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

src/attributes/codegen.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ otherwise undefined behavior results.
157157

158158
### Behavior
159159

160-
Applying the attribute to a function `f` allows code within `f` to get a hint of the [`Location`] of
161-
the "topmost" tracked call that led to `f`'s invocation. At the point of observation, an
162-
implementation behaves as if it walks up the stack from `f`'s frame to find the nearest frame of an
160+
Applying the attribute to a function `f` allows code within `f` to get a hint of the [`Location`] of
161+
the "topmost" tracked call that led to `f`'s invocation. At the point of observation, an
162+
implementation behaves as if it walks up the stack from `f`'s frame to find the nearest frame of an
163163
*unattributed* function `outer`, and it returns the [`Location`] of the tracked call in `outer`.
164164

165165
```rust
@@ -190,7 +190,7 @@ fn calls_f() {
190190
```
191191

192192
When `f` is called by another attributed function `g` which is in turn called by `calls_g`, code in
193-
both `f` and `g` observes `g`'s callsite within `calls_g`:
193+
both `f` and `g` observes `g`'s callsite within `calls_g`:
194194

195195
```rust
196196
# #[track_caller]

src/destructors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ smallest scope that contains the expression and is for one of the following:
166166
* The second operand of a [lazy boolean expression].
167167

168168
> **Notes**:
169-
>
169+
>
170170
> Temporaries that are created in the final expression of a function
171171
> body are dropped *after* any named variables bound in the function body, as
172172
> there is no smaller enclosing temporary scope.

src/expressions/closure-expr.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
> _ClosureParam_ :\
1313
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> [_Pattern_]&nbsp;( `:` [_Type_] )<sup>?</sup>
1414
15-
A _closure expression_, also know as a lambda expression or a lambda, defines a
16-
closure and denotes it as a value, in a single expression. A closure expression
17-
is a pipe-symbol-delimited (`|`) list of irrefutable [patterns] followed by an
18-
expression. Type annotations may optionally be added for the type of the
15+
A _closure expression_, also know as a lambda expression or a lambda, defines a
16+
closure and denotes it as a value, in a single expression. A closure expression
17+
is a pipe-symbol-delimited (`|`) list of irrefutable [patterns] followed by an
18+
expression. Type annotations may optionally be added for the type of the
1919
parameters or for the return type. If there is a return type, the expression
2020
used for the body of the closure must be a normal [block]. A closure expression
2121
also may begin with the `move` keyword before the initial `|`.

src/glossary.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ function* or a *free const*. Contrast to an [associated item].
7575

7676
### Fundamental traits
7777

78-
A fundamental trait is one where adding an impl of it for an existing type is a breaking change.
78+
A fundamental trait is one where adding an impl of it for an existing type is a breaking change.
7979
The `Fn` traits and `Sized` are fundamental.
8080

8181
### Fundamental type constructors
8282

83-
A fundamental type constructor is a type where implementing a [blanket implementation](#blanket-implementation) over it
84-
is a breaking change. `&`, `&mut`, `Box`, and `Pin` are fundamental.
83+
A fundamental type constructor is a type where implementing a [blanket implementation](#blanket-implementation) over it
84+
is a breaking change. `&`, `&mut`, `Box`, and `Pin` are fundamental.
8585

86-
Any time a type `T` is considered [local](#local-type), `&T`, `&mut T`, `Box<T>`, and `Pin<T>`
87-
are also considered local. Fundamental type constructors cannot [cover](#uncovered-type) other types.
88-
Any time the term "covered type" is used,
86+
Any time a type `T` is considered [local](#local-type), `&T`, `&mut T`, `Box<T>`, and `Pin<T>`
87+
are also considered local. Fundamental type constructors cannot [cover](#uncovered-type) other types.
88+
Any time the term "covered type" is used,
8989
the `T` in `&T`, `&mut T`, `Box<T>`, and `Pin<T>` is not considered covered.
9090

9191
### Inhabited
@@ -120,7 +120,7 @@ or not independent of applied type arguments. Given `trait Foo<T, U>`,
120120

121121
A `struct`, `enum`, or `union` which was defined in the current crate.
122122
This is not affected by applied type arguments. `struct Foo` is considered local, but
123-
`Vec<Foo>` is not. `LocalType<ForeignType>` is local. Type aliases do not
123+
`Vec<Foo>` is not. `LocalType<ForeignType>` is local. Type aliases do not
124124
affect locality.
125125

126126
### Nominal types

src/items/implementations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ least one of the following is true:
174174

175175
Only the appearance of *uncovered* type parameters is restricted.
176176
Note that for the purposes of coherence, [fundamental types] are
177-
special. The `T` in `Box<T>` is not considered covered, and `Box<LocalType>`
177+
special. The `T` in `Box<T>` is not considered covered, and `Box<LocalType>`
178178
is considered local.
179179

180180

src/type-coercions.md

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

33
**Type coercions** are implicit operations that change the type of a value.
4-
They happen automatically at specific locations and are highly restricted in
4+
They happen automatically at specific locations and are highly restricted in
55
what types actually coerce.
66

77
Any conversions allowed by coercion can also be explicitly performed by the
@@ -55,7 +55,7 @@ sites are:
5555
Foo { x: &mut 42 };
5656
}
5757
```
58-
58+
5959
* Function results&mdash;either the final line of a block if it is not
6060
semicolon-terminated or any expression in a `return` statement
6161

src/types/function-pointer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ restrictions as [regular function parameters].
6060
[extern function]: ../items/functions.md#extern-function-qualifier
6161
[function items]: function-item.md
6262
[unsafe function]: ../unsafe-functions.md
63-
[regular function parameters]: ../items/functions.md#attributes-on-function-parameters
63+
[regular function parameters]: ../items/functions.md#attributes-on-function-parameters

0 commit comments

Comments
 (0)