From 0f0075df09fbccec37fa0690bebd31734ddedb2c Mon Sep 17 00:00:00 2001
From: Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Date: Fri, 1 Sep 2017 10:36:20 +0200
Subject: [PATCH] Update README lint counter message

---
 README.md            | 3 +--
 util/update_lints.py | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)
 mode change 100644 => 100755 util/update_lints.py

diff --git a/README.md b/README.md
index 659859280d9..b9d97dd3e17 100644
--- a/README.md
+++ b/README.md
@@ -180,8 +180,7 @@ transparently:
 
 ## Lints
 
-There are 209 lints included in this crate:
-https://rust-lang-nursery.github.io/rust-clippy/master/index.html
+[There are 209 lints included in this crate](https://rust-lang-nursery.github.io/rust-clippy/master/index.html)
 
 More to come, please [file an issue](https://github.com/rust-lang-nursery/rust-clippy/issues) if you have ideas!
 
diff --git a/util/update_lints.py b/util/update_lints.py
old mode 100644
new mode 100755
index b8ae46cced8..6c08f575d05
--- a/util/update_lints.py
+++ b/util/update_lints.py
@@ -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)