Skip to content

Commit

Permalink
Fix about_Comments typos (#11662)
Browse files Browse the repository at this point in the history
  • Loading branch information
surfingoldelephant authored Jan 13, 2025
1 parent 91daddb commit 2c2c2fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ function Get-Function { }

For more information, see:

- [about_Comment_Based_Help][05].
- [about_Comment_Based_Help][05]
- [Writing Comment-Based Help Topics][03]

### `#Requires`

The `#Requires` statement prevents a script from running unless the current
PowerShell sessions meets the specified prerequisites. `#Requires` can appear
on any line in a script, but is processed in the same manner regardless of
PowerShell session meets the specified prerequisites. `#Requires` can appear on
any line in a script, but is processed in the same manner regardless of
position.

```powershell
Expand Down Expand Up @@ -171,7 +171,7 @@ sections of code. For PowerShell, the region markers are comments that begin
with `#region` and end with `#endregion`. The region markers must be at the
beginning of a line. The region markers are supported in the PowerShell ISE and
in Visual Studio Code with the PowerShell extension. The region markers aren't
a part of the PowerShell language. PowerShell interprets them as a regular
a part of the PowerShell language. PowerShell interprets them as regular
comments.

For more information, see the _Folding_ section of the
Expand Down
10 changes: 5 additions & 5 deletions reference/7.4/Microsoft.PowerShell.Core/About/about_Comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ function Get-Function { }

For more information, see:

- [about_Comment_Based_Help][05].
- [about_Comment_Based_Help][05]
- [Writing Comment-Based Help Topics][03]

### `#Requires`

The `#Requires` statement prevents a script from running unless the current
PowerShell sessions meets the specified prerequisites. `#Requires` can appear
on any line in a script, but is processed in the same manner regardless of
PowerShell session meets the specified prerequisites. `#Requires` can appear on
any line in a script, but is processed in the same manner regardless of
position.

```powershell
Expand Down Expand Up @@ -171,7 +171,7 @@ beginning of a script to indicate which shell should be used to run the script.
Shebang isn't a part of the PowerShell language. PowerShell interprets it as a
regular comment. Shebang is interpreted by the operating system.

In the following example, the shebang ensures PowerShell run the script when
In the following example, the shebang ensures PowerShell runs the script when
the script is invoked from a non-PowerShell context.

```powershell
Expand All @@ -186,7 +186,7 @@ sections of code. For PowerShell, the region markers are comments that begin
with `#region` and end with `#endregion`. The region markers must be at the
beginning of a line. The region markers are supported in the PowerShell ISE and
in Visual Studio Code with the PowerShell extension. The region markers aren't
a part of the PowerShell language. PowerShell interprets them as a regular
a part of the PowerShell language. PowerShell interprets them as regular
comments.

For more information, see the _Folding_ section of the
Expand Down
10 changes: 5 additions & 5 deletions reference/7.5/Microsoft.PowerShell.Core/About/about_Comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ function Get-Function { }

For more information, see:

- [about_Comment_Based_Help][05].
- [about_Comment_Based_Help][05]
- [Writing Comment-Based Help Topics][03]

### `#Requires`

The `#Requires` statement prevents a script from running unless the current
PowerShell sessions meets the specified prerequisites. `#Requires` can appear
on any line in a script, but is processed in the same manner regardless of
PowerShell session meets the specified prerequisites. `#Requires` can appear on
any line in a script, but is processed in the same manner regardless of
position.

```powershell
Expand Down Expand Up @@ -171,7 +171,7 @@ beginning of a script to indicate which shell should be used to run the script.
Shebang isn't a part of the PowerShell language. PowerShell interprets it as a
regular comment. Shebang is interpreted by the operating system.

In the following example, the shebang ensures PowerShell run the script when
In the following example, the shebang ensures PowerShell runs the script when
the script is invoked from a non-PowerShell context.

```powershell
Expand All @@ -186,7 +186,7 @@ sections of code. For PowerShell, the region markers are comments that begin
with `#region` and end with `#endregion`. The region markers must be at the
beginning of a line. The region markers are supported in the PowerShell ISE and
in Visual Studio Code with the PowerShell extension. The region markers aren't
a part of the PowerShell language. PowerShell interprets them as a regular
a part of the PowerShell language. PowerShell interprets them as regular
comments.

For more information, see the _Folding_ section of the
Expand Down

0 comments on commit 2c2c2fb

Please sign in to comment.