diff options
| author | AnthonyMikh <anthony.mikh@yandex.ru> | 2019-09-30 23:50:58 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-30 23:50:58 +0300 |
| commit | 21724eda05abd377b23bac160f62664bc2ee0082 (patch) | |
| tree | 83f331c1b7bc4ef85a7c56ce0b8782b624ef4fe8 /src/librustc_errors | |
| parent | 7b4c5c62aaa86301c2f358623bf3bfee39e7beef (diff) | |
| download | rust-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.rs | 2 |
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, |
