diff options
| author | Hanif Ariffin <hanif.ariffin.4326@gmail.com> | 2020-05-07 10:44:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-07 23:44:39 +0900 |
| commit | 3961c0861baf2eec560fd0c9179e4d6ebfd7fa44 (patch) | |
| tree | 3814718ca6aa39fd949068adab45fca77a655003 /src/doc/rustc-dev-guide | |
| parent | 28751222f9e0f654f7ede1fa1137f8e73820ccd1 (diff) | |
| download | rust-3961c0861baf2eec560fd0c9179e4d6ebfd7fa44.tar.gz rust-3961c0861baf2eec560fd0c9179e4d6ebfd7fa44.zip | |
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>
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/ty.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/rustc-dev-guide/src/ty.md b/src/doc/rustc-dev-guide/src/ty.md index 76e71584fd5..37f45cde17e 100644 --- a/src/doc/rustc-dev-guide/src/ty.md +++ b/src/doc/rustc-dev-guide/src/ty.md @@ -175,10 +175,10 @@ There are a lot of related types, and we’ll 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]. It’s 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]. It’s basically a user defined type. +We will talk more about these later. [**Foreign**][kindforeign] Corresponds to `extern type T`. |
