Skip to content

Commit 686b034

Browse files
committed
#[doc(alias)]'s doc: say that ASCII spaces are allowed
1 parent 7fdefb8 commit 686b034

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/rustdoc/src/advanced-features.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ pub struct BigX;
8080
Then, when looking for it through the `rustdoc` search, if you enter "x" or
8181
"big", search will show the `BigX` struct first.
8282

83-
There are some limitations on the doc alias names though: you can't use `"` or whitespace.
83+
There are some limitations on the doc alias names though: you can't use quotes (`'`, `"`) or whitespaces;
84+
ASCII spaces are accepted as long as they're not at the beginning or the end of the alias.
8485

8586
You can add multiple aliases at the same time by using a list:
8687

0 commit comments

Comments
 (0)