Skip to content

Commit

Permalink
Rename DocContext::is_json into DocContext::is_json_output
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 4, 2024
1 parent 0eff07e commit 58c12d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ impl<'tcx> DocContext<'tcx> {

/// Returns `true` if the JSON output format is enabled for generating the crate content.
///
/// If another option like `--show-coverage` is enabled, it will return false.
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 {
self.output_format.is_json() && !self.show_coverage
}
}
Expand Down

0 comments on commit 58c12d5

Please sign in to comment.