Skip to content

Commit 7000304

Browse files
authored
Fix suppression example errors in README
Fixes #1592
1 parent 09b6929 commit 7000304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,13 @@ function start-bam {
299299

300300
Suppress violations in all the functions:
301301
``` PowerShell
302-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', Scope='Function', Target='*')]
302+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '', Scope='Function', Target='*')]
303303
Param()
304304
```
305305

306306
Suppress violation in `start-bar`, `start-baz` and `start-bam` but not in `start-foo`:
307307
``` PowerShell
308-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', Scope='Function', Target='start-b*')]
308+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '', Scope='Function', Target='start-b*')]
309309
Param()
310310
```
311311

0 commit comments

Comments
 (0)