From 21724eda05abd377b23bac160f62664bc2ee0082 Mon Sep 17 00:00:00 2001 From: AnthonyMikh Date: Mon, 30 Sep 2019 23:50:58 +0300 Subject: Update doc comment for `style_or_override` --- src/librustc_errors/emitter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustc_errors') diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 6727f276759..3407967c7c9 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1056,7 +1056,7 @@ impl EmitterWriter { // `max_line_num_len` let padding = " ".repeat(padding + label.len() + 5); - /// Returns `true` if `style`, or the override if present and the style is `NoStyle`. + /// Returns `override` if it is present and `style` is `NoStyle` or `style` otherwise fn style_or_override(style: Style, override: Option