We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00f2bf4 commit 0851995Copy full SHA for 0851995
src/librustdoc/html/render/context.rs
@@ -135,8 +135,8 @@ impl SharedContext<'_> {
135
Ok(())
136
}
137
138
- /// Based on whether the `collapse-docs` pass was run, return either the `doc_value` or the
139
- /// `collapsed_doc_value` of the given item.
+ /// Returns the `collapsed_doc_value` of the given item if this is the main crate, otherwise
+ /// returns the `doc_value`.
140
crate fn maybe_collapsed_doc_value<'a>(&self, item: &'a clean::Item) -> Option<String> {
141
if self.collapsed { item.collapsed_doc_value() } else { item.doc_value() }
142
0 commit comments