Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 666353e

Browse files
authoredDec 13, 2023
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.
2 parents 1dd3611 + a2ffff0 commit 666353e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/doc/rustdoc/src/write-documentation/the-doc-attribute.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ mod bar {
201201
# fn main() {}
202202
```
203203

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

0 commit comments

Comments
 (0)
Failed to load comments.