We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DocContext::is_json
DocContext::is_json_output
1 parent 0eff07e commit 58c12d5Copy full SHA for 58c12d5
src/librustdoc/core.rs
@@ -124,8 +124,8 @@ impl<'tcx> DocContext<'tcx> {
124
125
/// Returns `true` if the JSON output format is enabled for generating the crate content.
126
///
127
- /// If another option like `--show-coverage` is enabled, it will return false.
128
- pub(crate) fn is_json(&self) -> bool {
+ /// If another option like `--show-coverage` is enabled, it will return `false`.
+ pub(crate) fn is_json_output(&self) -> bool {
129
self.output_format.is_json() && !self.show_coverage
130
}
131
0 commit comments