Skip to content

Commit 329e3cd

Browse files
authored
pr feedback
1 parent 58dffb7 commit 329e3cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Style-Guide/Code-Layout-and-Formatting.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ end{}
8181

8282
You can always delete or ignore one of the blocks (or add the `begin` block), add parameters and so on, but you should avoid writing scripts or functions without CmdletBinding, and you should always at least _consider_ making it take pipeline input.
8383

84-
#### Open braces on the same line
84+
#### Follow the one-true-brace style.
85+
Open braces always go on the same line
86+
8587
Code folding is nicer in many editors when a scriptblock is placed on the end of the same line, as in this example.
8688

8789
````
8890
function Get-Noun {
8991
end {
90-
if($Wide) {
92+
if ($Wide) {
9193
Get-Command | Sort-Object Noun -Unique | Format-Wide Noun
9294
} else {
9395
Get-Command | Sort-Object Noun -Unique | Select-Object -Expand Noun

0 commit comments

Comments
 (0)