From 59f63cc984b7aa891b4ba46b3478b41a06853978 Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev <3352968+kirillbobyrev@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:19:10 +0100 Subject: [PATCH] Improve rendering Span the link along the whole "const contexts", the text looks unnatural when the last `s` is left out of the hyperlink. --- src/items/functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/items/functions.md b/src/items/functions.md index 183561c92..c4189b288 100644 --- a/src/items/functions.md +++ b/src/items/functions.md @@ -217,7 +217,7 @@ aborts the process by executing an illegal instruction. Functions qualified with the `const` keyword are [const functions], as are [tuple struct] and [tuple variant] constructors. _Const functions_ can be -called from within [const context]s. +called from within [const contexts]. Const functions are not allowed to be [async](#async-functions), and cannot use the [`extern` function qualifier](#extern-function-qualifier). @@ -382,7 +382,7 @@ fn foo_oof(#[some_inert_attribute] arg: u8) { [_Type_]: ../types.md#type-expressions [_WhereClause_]: generics.md#where-clauses [_OuterAttribute_]: ../attributes.md -[const context]: ../const_eval.md#const-context +[const contexts]: ../const_eval.md#const-context [const functions]: ../const_eval.md#const-functions [tuple struct]: structs.md [tuple variant]: enumerations.md