Skip to content

Commit 9d66016

Browse files
authored
Update AvoidMultipleTypeAttributes.md (#1831)
1 parent 9c32168 commit 9d66016

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docs/Rules/AvoidMultipleTypeAttributes.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ title: AvoidMultipleTypeAttributes
1212
## Description
1313

1414
Parameters should not have more than one type specifier. Multiple type specifiers on parameters
15-
cause runtime errors.
15+
can cause runtime errors.
1616

1717
## How
1818

@@ -28,14 +28,10 @@ function Test-Script
2828
[CmdletBinding()]
2929
Param
3030
(
31-
[String]
32-
$Param1,
33-
3431
[switch]
35-
[bool]
32+
[int]
3633
$Switch
3734
)
38-
...
3935
}
4036
```
4137

@@ -47,12 +43,8 @@ function Test-Script
4743
[CmdletBinding()]
4844
Param
4945
(
50-
[String]
51-
$Param1,
52-
5346
[switch]
5447
$Switch
5548
)
56-
...
5749
}
5850
```

0 commit comments

Comments
 (0)