Skip to content

Commit

Permalink
updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yutingc committed May 6, 2015
1 parent 5691c9a commit 9ef7d48
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions RuleDocumentation/AvoidUsingWriteHost.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ PTo fix a violation of this rule, please replace Write-Host with Write-Output.

Wrong:

'''
```
function Test
{
...
Write-Host "Executing.."
}
'''
```

Correct:
'''

```
function Test
{
...
Expand All @@ -33,5 +35,4 @@ function Show-Something
{
Write-Host "show something on screen";
}

'''
```

0 comments on commit 9ef7d48

Please sign in to comment.