Skip to content

Commit 9ef7d48

Browse files
committed
updated examples
1 parent 5691c9a commit 9ef7d48

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

RuleDocumentation/AvoidUsingWriteHost.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ PTo fix a violation of this rule, please replace Write-Host with Write-Output.
1414

1515
Wrong:
1616

17-
'''
17+
```
1818
function Test
1919
{
2020
...
2121
Write-Host "Executing.."
2222
}
23-
'''
23+
```
24+
2425
Correct:
25-
'''
26+
27+
```
2628
function Test
2729
{
2830
...
@@ -33,5 +35,4 @@ function Show-Something
3335
{
3436
Write-Host "show something on screen";
3537
}
36-
37-
'''
38+
```

0 commit comments

Comments
 (0)