Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c710d7

Browse files
Mention tyalias in intra-doc link rustdoc book chapter
1 parent a7862da commit 5c710d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn Foo() {}
9090
These prefixes will be stripped when displayed in the documentation, so `[struct@Foo]` will be
9191
rendered as `Foo`. The following prefixes are available: `struct`, `enum`, `trait`, `union`,
9292
`mod`, `module`, `const`, `constant`, `fn`, `function`, `field`, `variant`, `method`, `derive`,
93-
`type`, `value`, `macro`, `prim` or `primitive`.
93+
`type`, `value`, `macro`, `tyalias`, `typealias`, `prim` or `primitive`.
9494

9595
You can also disambiguate for functions by adding `()` after the function name,
9696
or for macros by adding `!` after the macro name. The macro `!` can be followed by `()`, `{}`,

0 commit comments

Comments
 (0)