diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-09-25 15:27:00 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-09-26 15:07:12 +0200 |
| commit | 62c457bb02488dc6df95c574f34dd0ce444475dd (patch) | |
| tree | 5ad157747963881af2b1cb0b8c73406edeffa52f /src/doc | |
| parent | dba45cde68ba25b7fa790e4e36593b6fd55d6d8a (diff) | |
| download | rust-62c457bb02488dc6df95c574f34dd0ce444475dd.tar.gz rust-62c457bb02488dc6df95c574f34dd0ce444475dd.zip | |
Mention `tyalias` in intra-doc link rustdoc book chapter
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md b/src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md index 5e785483402..b1495b2575e 100644 --- a/src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md +++ b/src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md @@ -90,7 +90,7 @@ fn Foo() {} These prefixes will be stripped when displayed in the documentation, so `[struct@Foo]` will be rendered as `Foo`. The following prefixes are available: `struct`, `enum`, `trait`, `union`, `mod`, `module`, `const`, `constant`, `fn`, `function`, `field`, `variant`, `method`, `derive`, -`type`, `value`, `macro`, `prim` or `primitive`. +`type`, `value`, `macro`, `tyalias`, `typealias`, `prim` or `primitive`. You can also disambiguate for functions by adding `()` after the function name, or for macros by adding `!` after the macro name. The macro `!` can be followed by `()`, `{}`, |
