mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 15:03:25 +03:00
Update doc comment for style_or_override
This commit is contained in:
@@ -1056,7 +1056,7 @@ fn msg_to_buffer(&self,
|
||||
// `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,
|
||||
|
||||
Reference in New Issue
Block a user