Skip to content

Commit 58c12d5

Browse files
Rename DocContext::is_json into DocContext::is_json_output
1 parent 0eff07e commit 58c12d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/core.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ impl<'tcx> DocContext<'tcx> {
124124

125125
/// Returns `true` if the JSON output format is enabled for generating the crate content.
126126
///
127-
/// If another option like `--show-coverage` is enabled, it will return false.
128-
pub(crate) fn is_json(&self) -> bool {
127+
/// If another option like `--show-coverage` is enabled, it will return `false`.
128+
pub(crate) fn is_json_output(&self) -> bool {
129129
self.output_format.is_json() && !self.show_coverage
130130
}
131131
}

0 commit comments

Comments
 (0)