Skip to content

Commit 0f2da98

Browse files
Apply suggestions from review
1 parent 3262fca commit 0f2da98

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

reference/5.1/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The following commands copy the file contents to a new file named
146146
`MyDotNetTypes.Format.ps1xml` in a newly created `$HOME\Format` directory.
147147

148148
```powershell
149-
[void] (New-Item -Path $HOME\Format -ItemType Directory -Force)
149+
New-Item -Path $HOME\Format -ItemType Directory -Force
150150
151151
$copyParams = @{
152152
LiteralPath = "$PSHOME\DotNetTypes.format.ps1xml"

reference/7.4/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ To begin, get the format data from the source code file and create a
9393
`Format.ps1xml` file that contains the current view of the culture objects.
9494

9595
```powershell
96-
[void] (New-Item -Path $HOME\Format -ItemType Directory -Force)
96+
New-Item -Path $HOME\Format -ItemType Directory -Force
9797
9898
Get-FormatData -TypeName System.Globalization.CultureInfo |
9999
Export-FormatData -LiteralPath $HOME\Format\CultureInfo.Format.ps1xml
@@ -352,6 +352,7 @@ specific PowerShell version.
352352
```powershell
353353
Get-FormatData -PowerShellVersion 5.1 -TypeName System.IO.DirectoryInfo |
354354
Export-FormatData -LiteralPath $HOME\Format\MyGciView.Format.ps1xml
355+
355356
Update-FormatData -AppendPath $HOME\Format\MyGciView.Format.ps1xml
356357
```
357358

reference/7.5/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ To begin, get the format data from the source code file and create a
9393
`Format.ps1xml` file that contains the current view of the culture objects.
9494

9595
```powershell
96-
[void] (New-Item -Path $HOME\Format -ItemType Directory -Force)
96+
New-Item -Path $HOME\Format -ItemType Directory -Force
9797
9898
Get-FormatData -TypeName System.Globalization.CultureInfo |
9999
Export-FormatData -LiteralPath $HOME\Format\CultureInfo.Format.ps1xml
@@ -352,6 +352,7 @@ specific PowerShell version.
352352
```powershell
353353
Get-FormatData -PowerShellVersion 5.1 -TypeName System.IO.DirectoryInfo |
354354
Export-FormatData -Path $HOME\Format\MyGciView.Format.ps1xml
355+
355356
Update-FormatData -AppendPath $HOME\Format\MyGciView.Format.ps1xml
356357
```
357358

reference/7.6/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ To begin, get the format data from the source code file and create a
9393
`Format.ps1xml` file that contains the current view of the culture objects.
9494

9595
```powershell
96-
[void] (New-Item -Path $HOME\Format -ItemType Directory -Force)
96+
New-Item -Path $HOME\Format -ItemType Directory -Force
9797
9898
Get-FormatData -TypeName System.Globalization.CultureInfo |
9999
Export-FormatData -LiteralPath $HOME\Format\CultureInfo.Format.ps1xml
@@ -352,6 +352,7 @@ specific PowerShell version.
352352
```powershell
353353
Get-FormatData -PowerShellVersion 5.1 -TypeName System.IO.DirectoryInfo |
354354
Export-FormatData -Path $HOME\Format\MyGciView.Format.ps1xml
355+
355356
Update-FormatData -AppendPath $HOME\Format\MyGciView.Format.ps1xml
356357
```
357358

0 commit comments

Comments
 (0)