Skip to content

Commit c698496

Browse files
committed
Reexport -> re-export in documentation section headings
1 parent 79a521b commit c698496

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/doc/rustdoc/src/the-doc-attribute.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The `#[doc]` attribute
22

33
The `#[doc]` attribute lets you control various aspects of how `rustdoc` does
4-
its job.
4+
its job.
55

66
The most basic function of `#[doc]` is to handle the actual documentation
77
text. That is, `///` is syntax sugar for `#[doc]`. This means that these two
@@ -143,7 +143,7 @@ pub mod bar {
143143
}
144144
```
145145

146-
The documentation will generate a "Reexports" section, and say `pub use bar::Bar;`, where
146+
The documentation will generate a "Re-exports" section, and say `pub use bar::Bar;`, where
147147
`Bar` is a link to its page.
148148

149149
If we change the `use` line like this:
@@ -184,7 +184,7 @@ mod bar {
184184
}
185185
```
186186

187-
Now we'll have a `Reexports` line, and `Bar` will not link to anywhere.
187+
Now we'll have a `Re-exports` line, and `Bar` will not link to anywhere.
188188

189189
## `#[doc(hidden)]`
190190

src/librustdoc/html/render.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
20592059
curty = myty;
20602060
let (short, name) = match myty.unwrap() {
20612061
ItemType::ExternCrate |
2062-
ItemType::Import => ("reexports", "Reexports"),
2062+
ItemType::Import => ("reexports", "Re-exports"),
20632063
ItemType::Module => ("modules", "Modules"),
20642064
ItemType::Struct => ("structs", "Structs"),
20652065
ItemType::Union => ("unions", "Unions"),
@@ -3959,7 +3959,7 @@ fn sidebar_module(fmt: &mut fmt::Formatter, _it: &clean::Item,
39593959
it.type_() == ItemType::Import) {
39603960
sidebar.push_str(&format!("<li><a href=\"#{id}\">{name}</a></li>",
39613961
id = "reexports",
3962-
name = "Reexports"));
3962+
name = "Re-exports"));
39633963
}
39643964

39653965
// ordering taken from item_module, reorder, where it prioritized elements in a certain order
@@ -3972,7 +3972,7 @@ fn sidebar_module(fmt: &mut fmt::Formatter, _it: &clean::Item,
39723972
if items.iter().any(|it| !it.is_stripped() && it.type_() == myty) {
39733973
let (short, name) = match myty {
39743974
ItemType::ExternCrate |
3975-
ItemType::Import => ("reexports", "Reexports"),
3975+
ItemType::Import => ("reexports", "Re-exports"),
39763976
ItemType::Module => ("modules", "Modules"),
39773977
ItemType::Struct => ("structs", "Structs"),
39783978
ItemType::Union => ("unions", "Unions"),

0 commit comments

Comments
 (0)