Skip to content

Commit

Permalink
Fix a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Apr 10, 2024
1 parent 3cbe80e commit 8aca646
Show file tree
Hide file tree
Showing 74 changed files with 78 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ System.Double

When you perform arithmetic operations on `[bigint]` numbers, PowerShell uses
converts all operands to `[bigint]`, which results in truncation of non-integer
values. For example, the `[double]` value `1.9` is truncated to `1` when when
values. For example, the `[double]` value `1.9` is truncated to `1` when
converted to `[bigint]`.

```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ the extra object generated to the `$Error` variable.
```powershell
# Change the ErrorActionPreference to 'Stop'
$ErrorActionPreference = 'Stop'
# Error message is is generated and script stops processing
# Error message is generated and script stops processing
Write-Error -Message 'Test Error' ; Write-Host 'Hello World'
# Show the ActionPreferenceStopException and the error generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ When a reference is made to a variable, alias, or function, PowerShell searches
the current scope. If the item isn't found, the parent scope is searched. This
search is repeated all they way up to the global scope. If a variable is
private in a parent scope, the search through continues through the scope
chain. [Example 4][01] shows the the effect of a private variable in a scope
chain. [Example 4][01] shows the effect of a private variable in a scope
search.

## PowerShell scopes names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Column1 Column2 Column3
## Vertical tab (`v)

The vertical tab (`` `v ``) character advances to the next vertical tab stop
and writes the remaining output at that point. The rendering of the the
and writes the remaining output at that point. The rendering of the
vertical tab is device and terminal dependent.

```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ character string prevents guessing of the filename to gain unauthorized access t

When using the **Append** parameter, if the target file doesn't have a Byte Order Mark (BOM)
`Start-Transcript` defaults to `ASCII` encoding in the target file. This behavior can result in
improper encoding of mulitbyte characters in the transcript.
improper encoding of multibyte characters in the transcript.

## EXAMPLES

Expand Down
2 changes: 1 addition & 1 deletion reference/5.1/Microsoft.PowerShell.Utility/Out-GridView.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ This example saves cmdlet output in a variable then sends it to `Out-GridView`.
```

`Get-ChildItem` gets all the files in the PowerShell installation directory and its subdirectories
using the the `$PSHOME` automatic variable. The parentheses in the command establish the order of
using the `$PSHOME` automatic variable. The parentheses in the command establish the order of
operations. As a result, the output from the `Get-ChildItem` command is saved in the `$A` variable
before it is sent to `Out-GridView`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Finally, we run the `Enable-ProcessCreationEvent` function in the remote session
### Example 4: Use the dynamic module in the PSEventJob object

This example shows how to use the dynamic module in the **PSEventJob** object that is created when
you include an **Action** in an event registration. First we createand and enable a timer object,
you include an **Action** in an event registration. First we create and and enable a timer object,
then set the interval of the timer to 500 (milliseconds). The `Register-ObjectEvent` cmdlet
registers the **Elapsed** event of the timer object. The **PSEventJob** object is saved in the
`$Job` variable and is also available in the **Action** property of the event subscriber. For more
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ System.Double

When you perform arithmetic operations on `[bigint]` numbers, PowerShell uses
converts all operands to `[bigint]`, which results in truncation of non-integer
values. For example, the `[double]` value `1.9` is truncated to `1` when when
values. For example, the `[double]` value `1.9` is truncated to `1` when
converted to `[bigint]`.

```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ of the property for each item that has that property. If no items have the
specified property, the operator returns `$null`.

During member-access enumeration for a method, the operator attempts to call the
method on each item in the collection. If any item in the collection does does
method on each item in the collection. If any item in the collection does
not have the specified method, the operator returns the **MethodNotFound**
exception.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ the extra object generated to the `$Error` variable.
```powershell
# Change the ErrorActionPreference to 'Stop'
$ErrorActionPreference = 'Stop'
# Error message is is generated and script stops processing
# Error message is generated and script stops processing
Write-Error -Message 'Test Error' ; Write-Host 'Hello World'
# Show the ActionPreferenceStopException and the error generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ When a reference is made to a variable, alias, or function, PowerShell searches
the current scope. If the item isn't found, the parent scope is searched. This
search is repeated all they way up to the global scope. If a variable is
private in a parent scope, the search through continues through the scope
chain. [Example 4][01] shows the the effect of a private variable in a scope
chain. [Example 4][01] shows the effect of a private variable in a scope
search.

## PowerShell scopes names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ This example outputs the **up down arrow** (↕) symbol.
## Vertical tab (`v)

The vertical tab (`` `v ``) character advances to the next vertical tab stop
and writes the remaining output at that point. The rendering of the the
and writes the remaining output at that point. The rendering of the
vertical tab is device and terminal dependent.

```powershell
Expand Down
2 changes: 1 addition & 1 deletion reference/7.2/Microsoft.PowerShell.Utility/Out-GridView.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ This example saves cmdlet output in a variable then sends it to `Out-GridView`.
```

`Get-ChildItem` gets all the files in the PowerShell installation directory and its subdirectories
using the the `$PSHOME` automatic variable. The parentheses in the command establish the order of
using the `$PSHOME` automatic variable. The parentheses in the command establish the order of
operations. As a result, the output from the `Get-ChildItem` command is saved in the `$A` variable
before it is sent to `Out-GridView`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Finally, we run the `Enable-ProcessCreationEvent` function in the remote session
### Example 4: Use the dynamic module in the PSEventJob object

This example shows how to use the dynamic module in the **PSEventJob** object that is created when
you include an **Action** in an event registration. First we createand and enable a timer object,
you include an **Action** in an event registration. First we create and and enable a timer object,
then set the interval of the timer to 500 (milliseconds). The `Register-ObjectEvent` cmdlet
registers the **Elapsed** event of the timer object. The **PSEventJob** object is saved in the
`$Job` variable and is also available in the **Action** property of the event subscriber. For more
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ $Events | ForEach-Object -Begin {
Clear-Host
# Set the $i counter variable to zero.
$i = 0
# Set the $out variable to a empty string.
# Set the $out variable to an empty string.
$out = ""
} -Process {
# In the Process script block search the message property of each incoming object for "bios".
Expand Down
2 changes: 1 addition & 1 deletion reference/7.3/Microsoft.PowerShell.Core/About/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Describes the built-in functions in PowerShell.
PowerShell provides the ability to dynamically add new properties and alter the formatting of objects output to the pipeline.

### [about_Calling_Generic_Methods](about_Calling_Generic_Methods.md)
A generic method is a method with two parameter lists: a list of generic types and a list of method arguments. The following examples show the new PowerShell syntax for accessing a generic method: ```Syntax # static generic methods [type_name]::MethodName[generic_type_arguments](method_arguments) # instance generic methods $object.MethodName[generic_type_arguments](method_arguments) ``` The `generic_type_arguments` can be a a single type or comma-separated list of types, like `[string, int]`, including other generic types like `$obj.MethodName[string, System.Collections.Generic.Dictionary[string, int]]()` The `method_arguments` can be zero or more items. For more information, see [Generics in .NET](/dotnet/standard/generics/).
A generic method is a method with two parameter lists: a list of generic types and a list of method arguments. The following examples show the new PowerShell syntax for accessing a generic method: ```Syntax # static generic methods [type_name]::MethodName[generic_type_arguments](method_arguments) # instance generic methods $object.MethodName[generic_type_arguments](method_arguments) ``` The `generic_type_arguments` can be a single type or comma-separated list of types, like `[string, int]`, including other generic types like `$obj.MethodName[string, System.Collections.Generic.Dictionary[string, int]]()` The `method_arguments` can be zero or more items. For more information, see [Generics in .NET](/dotnet/standard/generics/).

### [about_Case-Sensitivity](about_Case-Sensitivity.md)
PowerShell is as case-insensitive as possible while preserving case.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ System.Double

When you perform arithmetic operations on `[bigint]` numbers, PowerShell uses
converts all operands to `[bigint]`, which results in truncation of non-integer
values. For example, the `[double]` value `1.9` is truncated to `1` when when
values. For example, the `[double]` value `1.9` is truncated to `1` when
converted to `[bigint]`.

```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ method:
$object.MethodName[generic_type_arguments](method_arguments)
```

The `generic_type_arguments` can be a a single type or comma-separated list of
The `generic_type_arguments` can be a single type or comma-separated list of
types, like `[string, int]`, including other generic types like
`$obj.MethodName[string, System.Collections.Generic.Dictionary[string, int]]()`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ To instantiate an instance of a class, use one of the following syntaxes:
> The hashtable syntax only works for classes that have a default constructor
> that doesn't expect any parameters. It creates an instance of the class with
> the default constructor and then assigns the key-value pairs to the instance
> properties. If any key in the hastable isn't a valid property name,
> properties. If any key in the hashtable isn't a valid property name,
> PowerShell raises an error.
## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ the extra object generated to the `$Error` variable.
```powershell
# Change the ErrorActionPreference to 'Stop'
$ErrorActionPreference = 'Stop'
# Error message is is generated and script stops processing
# Error message is generated and script stops processing
Write-Error -Message 'Test Error' ; Write-Host 'Hello World'
# Show the ActionPreferenceStopException and the error generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ You can use the static properties of .NET classes in PowerShell. Static
properties are properties of class, unlike standard properties, which are
properties of an object.

To get the static properties of an class, use the **Static** parameter of the
To get the static properties of a class, use the **Static** parameter of the
`Get-Member` cmdlet. For example, the following command gets the static
properties of the `System.DateTime` class.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ excessive resource use, both accidental and malicious. When timeouts are set on
both the local and remote computer, PowerShell uses the shortest timeout
settings.

When a timeout value does not permit a operation to complete, PowerShell
When a timeout value does not permit an operation to complete, PowerShell
terminates the operation and generates the following error.

> ERROR: The WS-Management service cannot complete the operation within the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ When a reference is made to a variable, alias, or function, PowerShell searches
the current scope. If the item isn't found, the parent scope is searched. This
search is repeated all they way up to the global scope. If a variable is
private in a parent scope, the search through continues through the scope
chain. [Example 4][01] shows the the effect of a private variable in a scope
chain. [Example 4][01] shows the effect of a private variable in a scope
search.

## PowerShell scopes names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ This example outputs the **up down arrow** (↕) symbol.
## Vertical tab (`v)

The vertical tab (`` `v ``) character advances to the next vertical tab stop
and writes the remaining output at that point. The rendering of the the
and writes the remaining output at that point. The rendering of the
vertical tab is device and terminal dependent.

```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Set-Location C:
```

You can also work with the **Variable** provider from any other PowerShell
drive. To reference an variable from another location, use the drive name
drive. To reference a variable from another location, use the drive name
`Variable:` in the path.

> [!NOTE]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ integer.

### -AsHashtable

Converts the JSON to an hash table object. This switch was introduced in PowerShell 6.0. Starting
Converts the JSON to a hash table object. This switch was introduced in PowerShell 6.0. Starting
with PowerShell 7.3, the object is an **OrderedHashtable** and preserves the ordering of the keys
from the JSON. In prior versions, the object is a **Hashtable**.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This cmdlet converts the specified content into a **MarkdownInfo**. When a file
for the **Path** parameter, the contents on the file are converted. The output object has three
properties:

- The **Token** property has the abstract syntax tree (AST) of the the converted object
- The **Token** property has the abstract syntax tree (AST) of the converted object
- The **Html** property has the HTML conversion of the specified input
- The **VT100EncodedString** property has the converted string with ANSI (VT100) escape sequences if
the **AsVT100EncodedString** parameter was specified
Expand Down
4 changes: 2 additions & 2 deletions reference/7.3/Microsoft.PowerShell.Utility/Out-GridView.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ This example saves cmdlet output in a variable then sends it to `Out-GridView`.
```

`Get-ChildItem` gets all the files in the PowerShell installation directory and its subdirectories
using the the `$PSHOME` automatic variable. The parentheses in the command establish the order of
using the `$PSHOME` automatic variable. The parentheses in the command establish the order of
operations. As a result, the output from the `Get-ChildItem` command is saved in the `$A` variable
before it is sent to `Out-GridView`.

Expand All @@ -119,7 +119,7 @@ This example displays the processes that are running on the Server01 computer in
Get-Process -ComputerName "Server01" | ogv -Title "Processes - Server01"
```

The examle uses `ogv`, which is the alias for the `Out-GridView` cmdlet. The **Title** parameter
The example uses `ogv`, which is the alias for the `Out-GridView` cmdlet. The **Title** parameter
specifies the window title.

### Example 6: Output data from remote computers to a grid view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generated by the `New-Event` cmdlet. These events are automatically added to the
your session without subscribing. However, subscribing lets you forward the events, specify an
action to respond to the events, and cancel the subscription.

When you subscribe to a event, an event subscriber is added to your session. To get the event
When you subscribe to an event, an event subscriber is added to your session. To get the event
subscribers in the session, use the `Get-EventSubscriber` cmdlet. To cancel the subscription, use
the `Unregister-Event` cmdlet, which deletes the event subscriber from the session.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ $Events | ForEach-Object -Begin {
Clear-Host
# Set the $i counter variable to zero.
$i = 0
# Set the $out variable to a empty string.
# Set the $out variable to an empty string.
$out = ""
} -Process {
# In the Process script block search the message property of each incoming object for "bios".
Expand Down
2 changes: 1 addition & 1 deletion reference/7.4/Microsoft.PowerShell.Core/About/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Describes the built-in functions in PowerShell.
PowerShell provides the ability to dynamically add new properties and alter the formatting of objects output to the pipeline.

### [about_Calling_Generic_Methods](about_Calling_Generic_Methods.md)
A generic method is a method with two parameter lists: a list of generic types and a list of method arguments. The following examples show the new PowerShell syntax for accessing a generic method: ```Syntax # static generic methods [type_name]::MethodName[generic_type_arguments](method_arguments) # instance generic methods $object.MethodName[generic_type_arguments](method_arguments) ``` The `generic_type_arguments` can be a a single type or comma-separated list of types, like `[string, int]`, including other generic types like `$obj.MethodName[string, System.Collections.Generic.Dictionary[string, int]]()` The `method_arguments` can be zero or more items. For more information, see [Generics in .NET](/dotnet/standard/generics/).
A generic method is a method with two parameter lists: a list of generic types and a list of method arguments. The following examples show the new PowerShell syntax for accessing a generic method: ```Syntax # static generic methods [type_name]::MethodName[generic_type_arguments](method_arguments) # instance generic methods $object.MethodName[generic_type_arguments](method_arguments) ``` The `generic_type_arguments` can be a single type or comma-separated list of types, like `[string, int]`, including other generic types like `$obj.MethodName[string, System.Collections.Generic.Dictionary[string, int]]()` The `method_arguments` can be zero or more items. For more information, see [Generics in .NET](/dotnet/standard/generics/).

### [about_Case-Sensitivity](about_Case-Sensitivity.md)
PowerShell is as case-insensitive as possible while preserving case.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ System.Double

When you perform arithmetic operations on `[bigint]` numbers, PowerShell uses
converts all operands to `[bigint]`, which results in truncation of non-integer
values. For example, the `[double]` value `1.9` is truncated to `1` when when
values. For example, the `[double]` value `1.9` is truncated to `1` when
converted to `[bigint]`.

```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ method:
$object.MethodName[generic_type_arguments](method_arguments)
```

The `generic_type_arguments` can be a a single type or comma-separated list of
The `generic_type_arguments` can be a single type or comma-separated list of
types, like `[string, int]`, including other generic types like
`$obj.MethodName[string, System.Collections.Generic.Dictionary[string, int]]()`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Set-Location C:
```

You can also work with the **Function** provider from any other PowerShell
drive. To reference an function from another location, use the drive name
drive. To reference a function from another location, use the drive name
`Function:` in the path.

> [!NOTE]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ of the property for each item that has that property. If no items have the
specified property, the operator returns `$null`.

During member-access enumeration for a method, the operator attempts to call the
method on each item in the collection. If any item in the collection does does
method on each item in the collection. If any item in the collection does
not have the specified method, the operator returns the **MethodNotFound**
exception.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ the extra object generated to the `$Error` variable.
```powershell
# Change the ErrorActionPreference to 'Stop'
$ErrorActionPreference = 'Stop'
# Error message is is generated and script stops processing
# Error message is generated and script stops processing
Write-Error -Message 'Test Error' ; Write-Host 'Hello World'
# Show the ActionPreferenceStopException and the error generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ You can use the static properties of .NET classes in PowerShell. Static
properties are properties of class, unlike standard properties, which are
properties of an object.

To get the static properties of an class, use the **Static** parameter of the
To get the static properties of a class, use the **Static** parameter of the
`Get-Member` cmdlet. For example, the following command gets the static
properties of the `System.DateTime` class.

Expand Down
Loading

0 comments on commit 8aca646

Please sign in to comment.