Skip to content

Commit

Permalink
Fix error message capitalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Feb 6, 2024
1 parent e89c20f commit fdf6035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub struct BlankLineAfterDecorator;
impl AlwaysFixableViolation for BlankLineAfterDecorator {
#[derive_message_formats]
fn message(&self) -> String {
format!("blank lines found after function decorator")
format!("Blank lines found after function decorator")
}

fn fix_title(&self) -> String {
Expand Down Expand Up @@ -251,7 +251,7 @@ impl AlwaysFixableViolation for BlankLinesAfterFunctionOrClass {
let BlankLinesAfterFunctionOrClass {
actual_blank_lines: blank_lines,
} = self;
format!("expected 2 blank lines after class or function definition, found ({blank_lines})")
format!("Expected 2 blank lines after class or function definition, found ({blank_lines})")
}

fn fix_title(&self) -> String {
Expand Down

0 comments on commit fdf6035

Please sign in to comment.