about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorAnthonyMikh <anthony.mikh@yandex.ru>2019-09-30 23:50:58 +0300
committerGitHub <noreply@github.com>2019-09-30 23:50:58 +0300
commit21724eda05abd377b23bac160f62664bc2ee0082 (patch)
tree83f331c1b7bc4ef85a7c56ce0b8782b624ef4fe8 /src/librustc_errors
parent7b4c5c62aaa86301c2f358623bf3bfee39e7beef (diff)
downloadrust-21724eda05abd377b23bac160f62664bc2ee0082.tar.gz
rust-21724eda05abd377b23bac160f62664bc2ee0082.zip
Update doc comment for `style_or_override`
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/emitter.rs2
1 files changed, 1 insertions, 1 deletions
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<Style>) -> Style {
             match (style, override) {
                 (Style::NoStyle, Some(override)) => override,