From e64510b117146453cf859018f921c840050448e9 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 19 Jan 2022 22:25:01 -0500 Subject: [PATCH] Link to associated constants section rather than glossary I think the section about associated constants is more informative than the glossary definition for the word "associated" in this case. --- src/items/constant-items.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/items/constant-items.md b/src/items/constant-items.md index 75b586ebe..bf315932f 100644 --- a/src/items/constant-items.md +++ b/src/items/constant-items.md @@ -65,7 +65,7 @@ fn create_and_drop_zero_with_destructor() { ## Unnamed constant -Unlike an [associated] constant, a [free] constant may be unnamed by using +Unlike an [associated constant], a [free] constant may be unnamed by using an underscore instead of the name. For example: ```rust @@ -89,7 +89,7 @@ m!(const _: () = ();); // const _: () = (); ``` -[associated]: ../glossary.md#associated-item +[associated constant]: ../items/associated-items.md#associated-constants [constant value]: ../const_eval.md#constant-expressions [free]: ../glossary.md#free-item [static lifetime elision]: ../lifetime-elision.md#static-lifetime-elision