From a4082e252682d89c2a3b43bdbc4f1e026d5e61af Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Fri, 7 Feb 2025 09:16:48 -0600 Subject: [PATCH 1/2] Fix typo (#11778) --- .../About/about_Functions_Advanced_Parameters.md | 2 +- .../About/about_Functions_Advanced_Parameters.md | 2 +- .../About/about_Functions_Advanced_Parameters.md | 2 +- .../About/about_Functions_Advanced_Parameters.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md index 001423f1f879..fa1f5ea53f36 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md @@ -58,7 +58,7 @@ function TestFunction { } ``` -If you try to use the parameters, PowerShell interprets them as stings passed +If you try to use the parameters, PowerShell interprets them as strings passed as positional parameter. ```powershell diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md index 3d9e9ea60e50..969eb0672a30 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md @@ -58,7 +58,7 @@ function TestFunction { } ``` -If you try to use the parameters, PowerShell interprets them as stings passed +If you try to use the parameters, PowerShell interprets them as strings passed as positional parameter. ```powershell diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md index 66e34b168001..4e4d379158b4 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md @@ -58,7 +58,7 @@ function TestFunction { } ``` -If you try to use the parameters, PowerShell interprets them as stings passed +If you try to use the parameters, PowerShell interprets them as strings passed as positional parameter. ```powershell diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md index 3de1a83971e5..183396f1c445 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md +++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md @@ -58,7 +58,7 @@ function TestFunction { } ``` -If you try to use the parameters, PowerShell interprets them as stings passed +If you try to use the parameters, PowerShell interprets them as strings passed as positional parameter. ```powershell From 368eaab052679dfca4c1e12d1efb321f42bfa07d Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Fri, 7 Feb 2025 10:26:34 -0600 Subject: [PATCH 2/2] Fix typo (#11780) --- reference/docs-conceptual/learn/ps101/09-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/docs-conceptual/learn/ps101/09-functions.md b/reference/docs-conceptual/learn/ps101/09-functions.md index a69bf186c358..689f01cdf6c2 100644 --- a/reference/docs-conceptual/learn/ps101/09-functions.md +++ b/reference/docs-conceptual/learn/ps101/09-functions.md @@ -578,7 +578,7 @@ function Test-MrParameterValidation { ## Verbose output -Inline commands are useful if you're writing complex code, but users don't see them unless they look +Inline comments are useful if you're writing complex code, but users don't see them unless they look at the code. The function in the following example has an inline comment in the `foreach` loop. While this