diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-13 18:03:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-13 18:03:34 +0100 |
| commit | 666353e7ba5709a6fbae263d18f95027dd1ad15e (patch) | |
| tree | 90e462f8a3bf25200aa4263ab99d93ae4121a87c | |
| parent | 1dd36119d062d8a19cde620a85e5891066c2cf67 (diff) | |
| parent | a2ffff0708e7a1cb4782de378337ddfd84dd3d4b (diff) | |
| download | rust-666353e7ba5709a6fbae263d18f95027dd1ad15e.tar.gz rust-666353e7ba5709a6fbae263d18f95027dd1ad15e.zip | |
Rollup merge of #118883 - HosseinAssaran:patch-1, r=fmease
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.
| -rw-r--r-- | src/doc/rustdoc/src/write-documentation/the-doc-attribute.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md b/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md index 046d018543f..669dc9358eb 100644 --- a/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md +++ b/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md @@ -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: |
