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>
This commit is contained in:
parent
6595d0e0f0
commit
9ce24d1cbf
|
|
@ -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<u32>`, where `MyStruct` is defined like so:
|
||||
|
||||
```rust,ignore
|
||||
struct MyStruct<T> { x: u32, y: T }
|
||||
struct MyStruct<T> { x: u8, y: T }
|
||||
```
|
||||
|
||||
The type `MyStruct<u32>` would be an instance of `TyKind::Adt`:
|
||||
|
|
|
|||
Loading…
Reference in New Issue