Skip to content

Commit d7e4fcc

Browse files
committed
Fix code formatting
1 parent d4e3776 commit d7e4fcc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

reference/docs-conceptual/lang-spec/chapter-03.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,19 +328,19 @@ Unless dot source notation ([§3.5.5][§3.5.5]) is used, each of the following c
328328
Consider the following example:
329329

330330
```powershell
331-
# start of script
331+
# Start of script
332332
$x = 2; $y = 3
333333
Get-Power $x $y
334334
335-
#function defined in script
336-
337-
function Get-Power([int]$x, [int]$y)
338-
{
339-
if ($y -gt 0) { return $x * (Get-Power $x (--$y)) }
340-
341-
else { return 1 }
335+
# Function defined in script
336+
function Get-Power([int]$x, [int]$y) {
337+
if ($y -gt 0) {
338+
return $x * (Get-Power $x (--$y))
339+
} else {
340+
return 1
341+
}
342342
}
343-
# end of script
343+
# End of script
344344
```
345345

346346
The scope of the variables `$x` and `$y` created in the script is the body of that script, including

0 commit comments

Comments
 (0)