mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-23 03:56:23 +00:00
21 lines
389 B
Markdown
21 lines
389 B
Markdown
---
|
|
id: 5a550cee-3ccc-4521-a250-7d0a9bd193d2
|
|
title: Search Aliases
|
|
---
|
|
|
|
# Description
|
|
|
|
`#[doc(alias = "<alias>")]` can be specified on items to add search
|
|
aliases when searching through [rustdoc's](20201119165454-rustdoc) UI.
|
|
See the PR[^1] for more information.
|
|
|
|
# Syntax
|
|
|
|
``` rust
|
|
#[doc(alias = "bar")]
|
|
struct Foo;
|
|
```
|
|
|
|
# Footnotes
|
|
|
|
[^1]: <https://github.com/rust-lang/rust/pull/75740/>
|