Update doc comment for style_or_override

This commit is contained in:
AnthonyMikh 2019-09-30 23:50:58 +03:00 committed by GitHub
parent 7b4c5c62aa
commit 21724eda05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,