Skip to content

Commit

Permalink
Unrolled build for rust-lang#118883
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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.
  • Loading branch information
rust-timer committed Dec 13, 2023
2 parents 7176b8b + a2ffff0 commit 59bbfc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 59bbfc8

Please sign in to comment.