From 694dff7985393b6aa489fd610fa5092d6f180a38 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Tue, 16 Dec 2025 00:17:20 -0800 Subject: [PATCH 1/2] items: clarify label for type-aliases documentation "type definitions" could be about structs, enums, or unions too; the syntax diagram and the link target both refer to type aliases, so use that label for the link. --- src/items.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/items.md b/src/items.md index 89ac40bf1f..6ff26dc122 100644 --- a/src/items.md +++ b/src/items.md @@ -46,7 +46,7 @@ There are several kinds of items: * [`extern crate` declarations] * [`use` declarations] * [function definitions] -* [type definitions] +* [type aliases] * [struct definitions] * [enumeration definitions] * [union definitions] @@ -93,5 +93,5 @@ See [item scopes] for information on the scoping rules of items. [struct definitions]: items/structs.md [trait definitions]: items/traits.md [traits]: items/traits.md -[type definitions]: items/type-aliases.md +[type aliases]: items/type-aliases.md [union definitions]: items/unions.md From fec65244a45c7dcb0a404dac42f43220ceadf101 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Tue, 16 Dec 2025 21:03:24 +0000 Subject: [PATCH 2/2] Revise list item for type alias definitions In this list, we call many things "definitions" to distinguish that we're only talking about items here. While it is more clear to say "type alias definitions" rather than "type definitions" when referring to type aliases, let's keep "definitions" in there for now as we use this terminology in other places, especially related to associated type definitions, which are spiritually similar. --- src/items.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/items.md b/src/items.md index 6ff26dc122..e4fa22f90a 100644 --- a/src/items.md +++ b/src/items.md @@ -46,7 +46,7 @@ There are several kinds of items: * [`extern crate` declarations] * [`use` declarations] * [function definitions] -* [type aliases] +* [type alias definitions] * [struct definitions] * [enumeration definitions] * [union definitions] @@ -93,5 +93,5 @@ See [item scopes] for information on the scoping rules of items. [struct definitions]: items/structs.md [trait definitions]: items/traits.md [traits]: items/traits.md -[type aliases]: items/type-aliases.md +[type alias definitions]: items/type-aliases.md [union definitions]: items/unions.md