Update doc comment for style_or_override
This commit is contained in:
parent
7b4c5c62aa
commit
21724eda05
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue