Skip to content

Commit e2eb053

Browse files
committed
Slightly reformat !'s docs after applying github suggestions
1 parent 3a40e83 commit e2eb053

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

library/core/src/primitive_docs.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ mod prim_bool {}
270270
///
271271
/// # Never type fallback
272272
///
273-
/// When the compiler sees a value of type `!` in a [coercion site](https://doc.rust-lang.org/reference/type-coercions.html#coercion-sites), it implicitly inserts a coercion
274-
/// to allow the type checker to infer any type:
273+
/// When the compiler sees a value of type `!` in a [coercion site], it implicitly inserts a
274+
/// coercion to allow the type checker to infer any type:
275275
///
276276
/// ```rust,ignore (illustrative-and-has-placeholders)
277277
/// // this
@@ -305,13 +305,15 @@ mod prim_bool {}
305305
///
306306
/// This is what is known as "never type fallback".
307307
///
308-
/// Historically, the fallback type was [`()`], causing confusing behavior where `!` spontaneously coerced
309-
/// to `()`, even when it would not infer `()` without the fallback. There are plans to
310-
/// change it in the [2024 edition](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html) (and possibly in all editions on a later date); see
308+
/// Historically, the fallback type was [`()`], causing confusing behavior where `!` spontaneously
309+
/// coerced to `()`, even when it would not infer `()` without the fallback. There are plans to
310+
/// change it in the [2024 edition] (and possibly in all editions on a later date); see
311311
/// [Tracking Issue for making `!` fall back to `!`][fallback-ti].
312312
///
313+
/// [coercion site](https://doc.rust-lang.org/reference/type-coercions.html#coercion-sites)
313314
/// [`()`]: prim@unit
314315
/// [fallback-ti]: https://github.com/rust-lang/rust/issues/123748
316+
/// [2024 edition]: https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html
315317
///
316318
#[unstable(feature = "never_type", issue = "35121")]
317319
mod prim_never {}

0 commit comments

Comments
 (0)