wiki/content/20201119170710-search_aliases.md

23 lines
406 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-29 18:27:12 +00:00
date: 2020-11-19
2024-05-06 20:40:05 +00:00
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/>