Skip to content

Commit 6146c20

Browse files
committed
Update AvoidGlobalVars.md
1 parent 91e82dc commit 6146c20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RuleDocumentation/AvoidGlobalVars.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Wrong:
1515
$Global:var1 = $null
1616
function NotGlobal ($var)
1717
{
18-
$a = $var + $var1
18+
$a = $var + $var1
1919
}
2020

2121
Correct:
2222

2323
$Global:var1 = $null
24-
function NotGlobal ($var1,$var2)
24+
function NotGlobal ($var1, $var2)
2525
{
26-
$a = $var1 + $var2
26+
$a = $var1 + $var2
2727
}

0 commit comments

Comments
 (0)