Skip to content

Commit

Permalink
Make tidy-alphabetical-{start,end} work more widely.
Browse files Browse the repository at this point in the history
Don't restrict it to lines that have `//` in them. This means it can be
used in `Cargo.toml` files, for example.
  • Loading branch information
nnethercote committed Oct 6, 2023
1 parent cae0791 commit a504c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/tidy/src/alphabetical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ fn is_close_bracket(c: char) -> bool {
}

// Don't let tidy check this here :D
const START_COMMENT: &str = concat!("// tidy-alphabetical", "-start");
const END_COMMENT: &str = "// tidy-alphabetical-end";
const START_COMMENT: &str = concat!("tidy-alphabetical", "-start");
const END_COMMENT: &str = "tidy-alphabetical-end";

fn check_section<'a>(
file: impl Display,
Expand Down

0 comments on commit a504c0c

Please sign in to comment.