Skip to content

Commit 123b054

Browse files
committed
Update UseShouldProcessForStateChangingFunctions.md
Change the example from "get" to "set"
1 parent 462b1da commit 123b054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RuleDocumentation/UseShouldProcessForStateChangingFunctions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To fix a violation of this rule, please add attribute SupportsShouldProcess. eg:
1313

1414
Wrong:
1515
```
16-
function Get-ServiceObject
16+
function Set-ServiceObject
1717
{
1818
[CmdletBinding()]
1919
param ([string]$c)
@@ -22,7 +22,7 @@ Wrong:
2222

2323
Correct:
2424
```
25-
function Get-ServiceObject
25+
function Set-ServiceObject
2626
{
2727
[CmdletBinding(SupportsShouldProcess = $true)]
2828
param ([string]$c)

0 commit comments

Comments
 (0)