Skip to content

Commit 63f1779

Browse files
authored
Merge pull request #83 from indented-automation/master
Tweaked OutputType / ParameterSetName headings
2 parents 64cd512 + da32154 commit 63f1779

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Style Guide/Function Structure.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,16 @@ function Get-USCitizenCapability {
8383

8484
#### Always have at least a `process {}` code block if any parameters takes values from the Pipeline.
8585

86-
#### Specify an OutputType attribute if the advanced function returns
87-
an object or collection of objects. If the function returns different
88-
object types depending on the parameter set provide one per parameter set.
86+
#### Specify an OutputType attribute if the advanced function returns an object or collection of objects.
87+
88+
If the function returns different object types depending on the parameter set provide one per parameter set.
8989

9090
```PowerShell
9191
[OutputType([<TypeLiteral>], ParameterSetName="<Name>")]
9292
[OutputType("<TypeNameString>", ParameterSetName="<Name>")]
9393
```
9494

95-
#### When a ParameterSetName is used in any of the parameters, always provide a
96-
DefaultParameterSetName in the CmdletBinding attribute.
95+
#### When a ParameterSetName is used in any of the parameters, always provide a DefaultParameterSetName in the CmdletBinding attribute.
9796

9897
```PowerShell
9998
function Get-User {

0 commit comments

Comments
 (0)