Update README lint counter message
This commit is contained in:
parent
045139613a
commit
0f0075df09
2 changed files with 3 additions and 4 deletions
4
util/update_lints.py
Normal file → Executable file
4
util/update_lints.py
Normal file → Executable file
|
@ -159,8 +159,8 @@ def main(print_only=False, check=False):
|
|||
# update the lint counter in README.md
|
||||
changed = replace_region(
|
||||
'README.md',
|
||||
r'^There are \d+ lints included in this crate:', "",
|
||||
lambda: ['There are %d lints included in this crate:\n' %
|
||||
r'^\[There are \d+ lints included in this crate\]\(https://rust-lang-nursery.github.io/rust-clippy/master/index.html\)$', "",
|
||||
lambda: ['[There are %d lints included in this crate](https://rust-lang-nursery.github.io/rust-clippy/master/index.html)\n' %
|
||||
(len(lints) + len(restriction_lints))],
|
||||
write_back=not check)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue