Skip to content

Commit fdab668

Browse files
committed
Fix some nits around ! changes
1 parent ae2211d commit fdab668

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/expressions/loop-expr.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ A `loop` expression repeats execution of its body continuously:
3737
`loop { println!("I live."); }`.
3838

3939
A `loop` expression without an associated `break` expression is diverging and
40-
so has type `!`. A `loop` expression containing associated
41-
[`break` expression(s)](#break-expressions) may terminate, and must have type
42-
compatible with the value of the `break` expression(s).
40+
has type [`!`](types.html#never-type). A `loop` expression containing
41+
associated [`break` expression(s)](#break-expressions) may terminate, and must
42+
have type compatible with the value of the `break` expression(s).
4343

4444
## Predicate loops
4545

src/items/functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ As non-Rust calling conventions do not support unwinding, unwinding past the end
123123
of an extern function will cause the process to abort. In LLVM, this is
124124
implemented by executing an illegal instruction.
125125

126-
[external blocks]: items/external-blocks.html
126+
[external blocks]: items/external-blocks.html

src/types.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ instantiated through a pointer type, such as `&str`.
8989
## Never type
9090

9191
The never type `!` is a type with no values, representing the result of
92-
computations that never complete. Although it has size `0` the empty bit
93-
pattern is not a valid representation. Expressions of type `!` can be coerced
94-
into any other type.
92+
computations that never complete. Expressions of type `!` can be coerced into
93+
any other type.
9594

9695
## Tuple types
9796

@@ -662,4 +661,4 @@ impl Printable for String {
662661
[issue 47010]: https://github.com/rust-lang/rust/issues/47010
663662
[issue 33140]: https://github.com/rust-lang/rust/issues/33140
664663
[_PATH_]: paths.html
665-
[_LIFETIME_OR_LABEL_]: tokens.html#lifetimes-and-loop-labels
664+
[_LIFETIME_OR_LABEL_]: tokens.html#lifetimes-and-loop-labels

0 commit comments

Comments
 (0)