@@ -55,7 +55,7 @@ we want to check. The output of Clippy is compared against a `.stderr` file.
5555Note that you don't have to create this file yourself, we'll get to
5656generating the ` .stderr ` files further down.
5757
58- We start by opening the test file created at ` tests/ui/foo_functions.rs ` .
58+ We start by opening the test file created at ` tests/ui/foo_functions.rs ` .
5959
6060Update the file with some examples to get started:
6161
@@ -102,7 +102,7 @@ Once we are satisfied with the output, we need to run
102102` tests/ui/update-all-references.sh ` to update the ` .stderr ` file for our lint.
103103Please note that, we should run ` TESTNAME=foo_functions cargo uitest `
104104every time before running ` tests/ui/update-all-references.sh ` .
105- Running ` TESTNAME=foo_functions cargo uitest ` should pass then. When we commit
105+ Running ` TESTNAME=foo_functions cargo uitest ` should pass then. When we commit
106106our lint, we need to commit the generated ` .stderr ` files, too.
107107
108108### Rustfix tests
@@ -133,7 +133,7 @@ With tests in place, let's have a look at implementing our lint now.
133133
134134### Lint declaration
135135
136- Let's start by opening the new file created in the ` clippy_lints ` crate
136+ Let's start by opening the new file created in the ` clippy_lints ` crate
137137at ` clippy_lints/src/foo_functions.rs ` . That's the crate where all the
138138lint code is. This file has already imported some initial things we will need:
139139
@@ -178,7 +178,7 @@ state the thing that is being checked for and read well when used with
178178* The last part should be a text that explains what exactly is wrong with the
179179 code
180180
181- The rest of this file contains an empty implementation for our lint pass,
181+ The rest of this file contains an empty implementation for our lint pass,
182182which in this case is ` EarlyLintPass ` and should look like this:
183183
184184``` rust
@@ -194,7 +194,7 @@ impl EarlyLintPass for FooFunctions {}
194194Don't worry about the ` name ` method here. As long as it includes the name of the
195195lint pass it should be fine.
196196
197- The new lint automation runs ` update_lints ` , which automates some things, but it
197+ The new lint automation runs ` update_lints ` , which automates some things, but it
198198doesn't automate everything. We will have to register our lint pass manually in
199199the ` register_plugins ` function in ` clippy_lints/src/lib.rs ` :
200200
0 commit comments