Change a typo mistake in the-doc-attribute.md

I guess that `Bar` in the section I changed should be `bar` because when I run the program it has its page under struct but bar doesn't have any page.
This commit is contained in:
Hosssein 2023-12-12 20:22:41 +03:30 committed by GitHub
parent 27d8a57713
commit a2ffff0708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,7 @@ mod bar {
# fn main() {}
```
Here, because `bar` is not public, `Bar` wouldn't have its own page, so there's nowhere
Here, because `bar` is not public, `bar` wouldn't have its own page, so there's nowhere
to link to. `rustdoc` will inline these definitions, and so we end up in the same case
as the `#[doc(inline)]` above; `Bar` is in a `Structs` section, as if it were defined at
the top level. If we add the `no_inline` form of the attribute: