Skip to content

Commit 91e82dc

Browse files
committed
Update AvoidDefaultTrueValueSwitchParameter.md
1 parent 3642d4f commit 91e82dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RuleDocumentation/AvoidDefaultTrueValueSwitchParameter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ Wrong:
1818
Param
1919
( …
2020
$Param1,
21-
[switch]
22-
$switch=$true
21+
[Switch]
22+
$Switch=$True
2323
)
2424

2525
Correct:
2626

2727
Param
2828
( …
2929
$Param1,
30-
[switch]
31-
$switch=$false
30+
[Switch]
31+
$Switch=$False
3232
)

0 commit comments

Comments
 (0)