Skip to content

Commit 61cb77d

Browse files
matt9ucciSean Wheeler
authored andcommitted
Fix the example of Format-Wide -DisplayError (#1850)
1 parent 2bdb9e6 commit 61cb77d

File tree

5 files changed

+43
-33
lines changed

5 files changed

+43
-33
lines changed

reference/3.0/Microsoft.PowerShell.Utility/Format-Wide.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,16 @@ Accept wildcard characters: False
7878
```
7979
8080
### -DisplayError
81-
Displays errors at the command line.
82-
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a Format-Wide command, and the expressions do not appear to be working.
83-
The following shows an example of the results of adding the DisplayError parameter with an expression.
81+
Indicates that this cmdlet displays errors at the command line.
82+
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a `Format-Wide` command, and the expressions do not appear to be working.
83+
The following shows an example of the results of adding the **DisplayError** parameter with an expression.
8484

85-
PS \> Get-Date | Format-Wide DayOfWeek,{ $_ / $null } -ShowError
86-
DayOfWeek $_ / $null
87-
--------- ------------
88-
Wednesday #ERR
85+
```powershell
86+
PS C:\> Get-Date | Format-Wide { $_ / $null } -DisplayError
87+
88+
89+
#ERR
90+
```
8991

9092
```yaml
9193
Type: SwitchParameter

reference/4.0/Microsoft.PowerShell.Utility/Format-Wide.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ Accept wildcard characters: False
8383
```
8484
8585
### -DisplayError
86-
Displays errors at the command line.
87-
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a Format-Wide command, and the expressions do not appear to be working.
88-
The following shows an example of the results of adding the DisplayError parameter with an expression.
86+
Indicates that this cmdlet displays errors at the command line.
87+
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a `Format-Wide` command, and the expressions do not appear to be working.
88+
The following shows an example of the results of adding the **DisplayError** parameter with an expression.
8989

90-
PS \> Get-Date | Format-Wide DayOfWeek,{ $_ / $null } -ShowError
91-
DayOfWeek $_ / $null
92-
--------- ------------
93-
Wednesday #ERR
90+
```powershell
91+
PS C:\> Get-Date | Format-Wide { $_ / $null } -DisplayError
92+
93+
94+
#ERR
95+
```
9496

9597
```yaml
9698
Type: SwitchParameter

reference/5.0/Microsoft.PowerShell.Utility/Format-Wide.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ Accept wildcard characters: False
8383
```
8484
8585
### -DisplayError
86-
Indicates that the cmdlet displays errors at the command line.
87-
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a **Format-Wide** command, and the expressions do not appear to be working.
88-
The following shows an example of the results of adding the *DisplayError* parameter with an expression.
86+
Indicates that this cmdlet displays errors at the command line.
87+
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a `Format-Wide` command, and the expressions do not appear to be working.
88+
The following shows an example of the results of adding the **DisplayError** parameter with an expression.
8989

90-
PS \> Get-Date | Format-Wide DayOfWeek,{ $_ / $null } -ShowError
91-
DayOfWeek $_ / $null
92-
--------- ------------
93-
Wednesday #ERR
90+
```powershell
91+
PS C:\> Get-Date | Format-Wide { $_ / $null } -DisplayError
92+
93+
94+
#ERR
95+
```
9496

9597
```yaml
9698
Type: SwitchParameter

reference/5.1/Microsoft.PowerShell.Utility/Format-Wide.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,15 @@ Accept wildcard characters: False
8484
8585
### -DisplayError
8686
Indicates that this cmdlet displays errors at the command line.
87-
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a **Format-Wide** command, and the expressions do not appear to be working.
88-
The following shows an example of the results of adding the *DisplayError* parameter with an expression.
87+
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a `Format-Wide` command, and the expressions do not appear to be working.
88+
The following shows an example of the results of adding the **DisplayError** parameter with an expression.
8989

90-
PS \> Get-Date | Format-Wide DayOfWeek,{ $_ / $null } -ShowError
91-
DayOfWeek $_ / $null
92-
--------- ------------
93-
Wednesday #ERR
90+
```powershell
91+
PS C:\> Get-Date | Format-Wide { $_ / $null } -DisplayError
92+
93+
94+
#ERR
95+
```
9496

9597
```yaml
9698
Type: SwitchParameter

reference/6/Microsoft.PowerShell.Utility/Format-Wide.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ Accept wildcard characters: False
8585
8686
### -DisplayError
8787
Indicates that this cmdlet displays errors at the command line.
88-
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a **Format-Wide** command, and the expressions do not appear to be working.
89-
The following shows an example of the results of adding the *DisplayError* parameter with an expression.
88+
This parameter is rarely used, but can be used as a debugging aid when you are formatting expressions in a `Format-Wide` command, and the expressions do not appear to be working.
89+
The following shows an example of the results of adding the **DisplayError** parameter with an expression.
9090

91-
PS \> Get-Date | Format-Wide DayOfWeek,{ $_ / $null } -ShowError
92-
DayOfWeek $_ / $null
93-
--------- ------------
94-
Wednesday #ERR
91+
```powershell
92+
PS C:\> Get-Date | Format-Wide { $_ / $null } -DisplayError
93+
94+
95+
#ERR
96+
```
9597

9698
```yaml
9799
Type: SwitchParameter

0 commit comments

Comments
 (0)