Skip to content

Commit d866c38

Browse files
Use different type in an example (#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 <48135649+Nilstrieb@users.noreply.github.com>
1 parent a9ab50b commit d866c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ty.md

+1-1
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)