Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 8b431b3

Browse files
Use different type in an example (rust-lang#1908)
* 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 <[email protected]>
1 parent 50102a5 commit 8b431b3

File tree

1 file changed

+1
-1
lines changed
  • src/doc/rustc-dev-guide/src

1 file changed

+1
-1
lines changed

src/doc/rustc-dev-guide/src/ty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ modules choose to import a larger or smaller set of names explicitly.
281281
Let's consider the example of a type like `MyStruct<u32>`, where `MyStruct` is defined like so:
282282

283283
```rust,ignore
284-
struct MyStruct<T> { x: u32, y: T }
284+
struct MyStruct<T> { x: u8, y: T }
285285
```
286286

287287
The type `MyStruct<u32>` would be an instance of `TyKind::Adt`:

0 commit comments

Comments
 (0)