Skip to content

Commit 6f79c28

Browse files
hbinaJohnTitor
andauthored
Added link to the ty::Adt (#696)
* Added link to the `ty::Adt` * Formatting fixes Thanks @JohnTitor Co-authored-by: Yuki Okushi <[email protected]>
1 parent e1736cc commit 6f79c28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ty.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ There are a lot of related types, and we’ll cover them in time (e.g regions/li
175175
There are a bunch of variants on the `TyKind` enum, which you can see by looking at the rustdocs.
176176
Here is a sampling:
177177

178-
[**Algebraic Data Types (ADTs)**]() An [*algebraic Data Type*][wikiadt] is a `struct`, `enum` or
179-
`union`. Under the hood, `struct`, `enum` and `union` are actually implemented the same way: they
180-
are all [`ty::TyKind::Adt`][kindadt]. It’s basically a user defined type. We will talk more about
181-
these later.
178+
[**Algebraic Data Types (ADTs)**][kindadt] An [*algebraic Data Type*][wikiadt] is a `struct`,
179+
`enum` or `union`. Under the hood, `struct`, `enum` and `union` are actually implemented
180+
the same way: they are all [`ty::TyKind::Adt`][kindadt]. It’s basically a user defined type.
181+
We will talk more about these later.
182182

183183
[**Foreign**][kindforeign] Corresponds to `extern type T`.
184184

0 commit comments

Comments
 (0)