Skip to content

Commit a504c0c

Browse files
committed
Make tidy-alphabetical-{start,end} work more widely.
Don't restrict it to lines that have `//` in them. This means it can be used in `Cargo.toml` files, for example.
1 parent cae0791 commit a504c0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/tidy/src/alphabetical.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ fn is_close_bracket(c: char) -> bool {
3030
}
3131

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

3636
fn check_section<'a>(
3737
file: impl Display,

0 commit comments

Comments
 (0)