Fix cfg typo in rustdoc book

This commit is contained in:
Guillaume Gomez
2026-05-28 17:24:12 +02:00
parent ddc1a64229
commit 2771eb4578

View File

@@ -172,7 +172,7 @@ pub use self::private_mod::Second as Visible;
```
In this case, `Visible` will have as documentation `First Second Third` and will also have as `cfg`:
`#[cfg(a, b, c)]`.
`#[cfg(a)]`, `#[cfg(b)]` and `#[cfg(c)]`.
[Intra-doc links](./linking-to-items-by-name.md) are resolved relative to where the doc comment is
defined.