Skip to content

Commit 7cf4f42

Browse files
committed
Rename pushname to is_module
1 parent 0c193f8 commit 7cf4f42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/html/render/context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ impl<'tcx> Context<'tcx> {
167167
"../".repeat(self.current.len())
168168
}
169169

170-
fn render_item(&self, it: &clean::Item, pushname: bool) -> String {
170+
fn render_item(&self, it: &clean::Item, is_module: bool) -> String {
171171
let mut title = String::new();
172-
if pushname {
172+
if is_module {
173173
title.push_str(&it.name.unwrap().as_str());
174174
}
175175
if !it.is_primitive() && !it.is_keyword() {
176-
if pushname {
176+
if is_module {
177177
title.push_str(" in ");
178178
}
179179
// No need to include the namespace for primitive types and keywords

0 commit comments

Comments
 (0)