From 9ce24d1cbfdafd22683ea298d9ce4bc55b765780 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Fri, 1 Mar 2024 23:26:16 +0100 Subject: [PATCH] Use different type in an example (#1908) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use different type in an example Sentences such as «without the argument u32» were ambiguous, as there were two distincts u32. Having a single one, the one in the monomorphization of the type, remove the ambiguity. * Update src/ty.md --------- Co-authored-by: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> --- src/ty.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ty.md b/src/ty.md index 80a72b11..c1bf6315 100644 --- a/src/ty.md +++ b/src/ty.md @@ -281,7 +281,7 @@ modules choose to import a larger or smaller set of names explicitly. Let's consider the example of a type like `MyStruct`, where `MyStruct` is defined like so: ```rust,ignore -struct MyStruct { x: u32, y: T } +struct MyStruct { x: u8, y: T } ``` The type `MyStruct` would be an instance of `TyKind::Adt`: