@@ -303,7 +303,7 @@ It should be preferred to using `error-pattern`, which is imprecise and non-exha
303303### ` error-pattern `
304304
305305The ` error-pattern ` [ directive] ( directives.md ) can be used for runtime messages, which don't
306- have a specific span, or in exceptional cases for compile time messages.
306+ have a specific span, or in exceptional cases, for compile time messages.
307307
308308Let's think about this test:
309309
@@ -316,7 +316,7 @@ fn main() {
316316}
317317```
318318
319- We want to ensure this shows "index out of bounds" but we cannot use the ` ERROR `
319+ We want to ensure this shows "index out of bounds", but we cannot use the ` ERROR `
320320annotation since the runtime error doesn't have any span. Then it's time to use the
321321` error-pattern ` directive:
322322
@@ -340,12 +340,12 @@ If the compile time output is target dependent or too verbose, use directive
340340non-exhaustive.
341341Some of the compiler messages can stay uncovered by annotations in this mode.
342342
343- For checking runtime output ` //@ check-run-results ` may be preferable.
343+ For checking runtime output, ` //@ check-run-results ` may be preferable.
344344
345345Only use ` error-pattern ` if none of the above works.
346346
347347Line annotations ` //~ ` are still checked in tests using ` error-pattern ` .
348- In exceptional cases use ` //@ compile-flags: --error-format=human ` to opt out of these checks.
348+ In exceptional cases, use ` //@ compile-flags: --error-format=human ` to opt out of these checks.
349349
350350### Diagnostic kinds (error levels)
351351
0 commit comments