Skip to content

Commit 21724ed

Browse files
authored
Update doc comment for style_or_override
1 parent 7b4c5c6 commit 21724ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_errors/emitter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ impl EmitterWriter {
10561056
// `max_line_num_len`
10571057
let padding = " ".repeat(padding + label.len() + 5);
10581058

1059-
/// Returns `true` if `style`, or the override if present and the style is `NoStyle`.
1059+
/// Returns `override` if it is present and `style` is `NoStyle` or `style` otherwise
10601060
fn style_or_override(style: Style, override: Option<Style>) -> Style {
10611061
match (style, override) {
10621062
(Style::NoStyle, Some(override)) => override,

0 commit comments

Comments
 (0)