Skip to content

Commit 814f797

Browse files
Update src/ty.md
Co-authored-by: Michael Goulet <[email protected]>
1 parent db6ce6e commit 814f797

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ty.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ benefits of interning.
137137

138138
## Allocating and working with types
139139

140-
To allocate a new type, you can use the various `new_` methods defined on the [`rustc_middle::ty`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Ty.html). These have names
140+
To allocate a new type, you can use the various `new_*` methods defined on
141+
[`Ty`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Ty.html).
142+
These have names
141143
that correspond mostly to the various kinds of types. For example:
142144

143145
```rust,ignore

0 commit comments

Comments
 (0)