From 2c2c2fb4b1018a81eb97c43a7aa93fbc643ce4b0 Mon Sep 17 00:00:00 2001 From: surfingoldelephant <151538956+surfingoldelephant@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:31:46 +0000 Subject: [PATCH] Fix about_Comments typos (#11662) --- .../Microsoft.PowerShell.Core/About/about_Comments.md | 8 ++++---- .../Microsoft.PowerShell.Core/About/about_Comments.md | 10 +++++----- .../Microsoft.PowerShell.Core/About/about_Comments.md | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Comments.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Comments.md index d9059c9c128..a31be4719af 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Comments.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Comments.md @@ -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 @@ -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 diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Comments.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Comments.md index c6ba96e932b..4c4ff6dba43 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Comments.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Comments.md @@ -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 @@ -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 @@ -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 diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Comments.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Comments.md index 8a7af6f594c..eb04c4c1a95 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Comments.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Comments.md @@ -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 @@ -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 @@ -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