Skip to content
Merged

Spelling #11765

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reference/7.6/Microsoft.PowerShell.Core/Get-Command.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ This command uses the **ArgumentList** and **Syntax** parameters to get the synt
the Certificate Provider adds to the session.

```powershell
Get-Command -Name Get-Childitem -Args Cert: -Syntax
Get-Command -Name Get-ChildItem -Args Cert: -Syntax
```

When you compare the syntax displayed in the output with the syntax that's displayed when you omit
Expand Down
8 changes: 4 additions & 4 deletions reference/7.6/Microsoft.PowerShell.Utility/Get-Error.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ In this example, `Get-Error` displays the details of the most recent error that
current session.

```powershell
Get-Childitem -path /NoRealDirectory
Get-ChildItem -path /NoRealDirectory
Get-Error
```

Expand Down Expand Up @@ -86,11 +86,11 @@ InvocationInfo :
ScriptLineNumber : 1
OffsetInLine : 1
HistoryId : 57
Line : Get-Childitem -path c:\NoRealDirectory
Line : Get-ChildItem -path c:\NoRealDirectory
PositionMessage : At line:1 char:1
+ Get-Childitem -path c:\NoRealDirectory
+ Get-ChildItem -path c:\NoRealDirectory
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
InvocationName : Get-Childitem
InvocationName : Get-ChildItem
CommandOrigin : Internal
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Id Name State HasMoreData Location Command
```powershell
$Timer.Enabled = $True
$Subscriber = Get-EventSubscriber -SourceIdentifier Timer.Random
($Subscriber.action).gettype().fullname
($Subscriber.action).GetType().fullname
```

```Output
Expand Down
10 changes: 5 additions & 5 deletions reference/7.6/Microsoft.PowerShell.Utility/Get-PSCallStack.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ To run a `Get-PSCallStack` command while in the debugger, type `k` or `Get-PSCal
```powershell
PS C:\> function my-alias {
$p = $args[0]
Get-Alias | where {$_.definition -like "*$p"} | format-table definition, name -auto
Get-Alias | where {$_.Definition -like "*$p"} | Format-Table definition, name -auto
}
PS C:\ps-test> Set-PSBreakpoint -Command my-alias
Command : my-alias
Expand All @@ -47,18 +47,18 @@ Script : prompt PS C:\> my-alias Get-Content

Entering debug mode. Use h or ? for help.
Hit Command breakpoint on 'prompt:my-alias'
my-alias get-content
my-alias Get-Content
[DBG]: PS C:\ps-test> s
$p = $args[0]
DEBUG: Stepped to ': $p = $args[0] '
[DBG]: PS C:\ps-test> s
get-alias | Where {$_.Definition -like "*$p*"} | format-table Definition,
[DBG]: PS C:\ps-test>get-pscallstack
Get-Alias | Where {$_.Definition -like "*$p*"} | Format-Table Definition,
[DBG]: PS C:\ps-test>Get-PSCallstack

Name CommandLineParameters UnboundArguments Location
---- --------------------- ---------------- --------
prompt {} {} prompt
my-alias {} {get-content} prompt
my-alias {} {Get-Content} prompt
prompt {} {} prompt

PS C:\> [DBG]: PS C:\ps-test> o
Expand Down
2 changes: 1 addition & 1 deletion reference/7.6/Microsoft.PowerShell.Utility/Get-Unique.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ These commands find the number of unique words in a text file.

```powershell
$A = $( foreach ($line in Get-Content C:\Test1\File1.txt) {
$line.tolower().split(" ")
$line.ToLower().split(" ")
}) | Sort-Object | Get-Unique
$A.count
```
Expand Down