Added link to the `ty::Adt` (#696)

* Added link to the `ty::Adt`

* Formatting fixes

Thanks @JohnTitor

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
This commit is contained in:
Hanif Ariffin 2020-05-07 10:44:39 -04:00 committed by GitHub
parent 40bb43d2d1
commit ebd97c81b5
1 changed files with 4 additions and 4 deletions

View File

@ -175,10 +175,10 @@ There are a lot of related types, and well cover them in time (e.g regions/li
There are a bunch of variants on the `TyKind` enum, which you can see by looking at the rustdocs.
Here is a sampling:
[**Algebraic Data Types (ADTs)**]() An [*algebraic Data Type*][wikiadt] is a `struct`, `enum` or
`union`. Under the hood, `struct`, `enum` and `union` are actually implemented the same way: they
are all [`ty::TyKind::Adt`][kindadt]. Its basically a user defined type. We will talk more about
these later.
[**Algebraic Data Types (ADTs)**][kindadt] An [*algebraic Data Type*][wikiadt] is a `struct`,
`enum` or `union`. Under the hood, `struct`, `enum` and `union` are actually implemented
the same way: they are all [`ty::TyKind::Adt`][kindadt]. Its basically a user defined type.
We will talk more about these later.
[**Foreign**][kindforeign] Corresponds to `extern type T`.