Add field@ and variant@ doc-link disambiguators
This commit is contained in:
parent
749f80ab05
commit
e91e01509e
8 changed files with 138 additions and 66 deletions
|
|
@ -89,8 +89,8 @@ 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`, `method`, `derive`, `type`, `value`,
|
||||
`macro`, `prim` or `primitive`.
|
||||
`mod`, `module`, `const`, `constant`, `fn`, `function`, `field`, `variant`, `method`, `derive`,
|
||||
`type`, `value`, `macro`, `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 `()`, `{}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue