about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-03-06 21:59:01 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-03-10 10:17:37 +0100
commitbbbefa3edc48cb1afd57f1d99bf418731be1ef8f (patch)
tree487c0758a826ae64fb4eaf22423b079a69915b89 /src/doc
parent4b9f5cc4c10a161047475cb9bbe02c4fda57fb07 (diff)
downloadrust-bbbefa3edc48cb1afd57f1d99bf418731be1ef8f.tar.gz
rust-bbbefa3edc48cb1afd57f1d99bf418731be1ef8f.zip
Allow doc alias attributes to use both list and value
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustdoc/src/advanced-features.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/rustdoc/src/advanced-features.md b/src/doc/rustdoc/src/advanced-features.md
index abdc2e4025d..6147bd0a97a 100644
--- a/src/doc/rustdoc/src/advanced-features.md
+++ b/src/doc/rustdoc/src/advanced-features.md
@@ -81,3 +81,10 @@ Then, when looking for it through the `rustdoc` search, if you enter "x" or
 "big", search will show the `BigX` struct first.
 
 There are some limitations on the doc alias names though: you can't use `"` or whitespace.
+
+You can add multiple aliases at the same time by using a list:
+
+```rust,no_run
+#[doc(alias("x", "big"))]
+pub struct BigX;
+```