Skip to content

Commit 4009685

Browse files
authored
Fix typos in 5.1 topics (#11119)
1 parent 057aab0 commit 4009685

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Execution_Policies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes the PowerShell execution policies and explains how to manage them.
33
Locale: en-US
4-
ms.date: 03/04/2024
4+
ms.date: 05/16/2024
55
no-loc: [Bypass, Default, Restricted, Undefined, Unrestricted, Process, Scope, MachinePolicy, about_Group_Policy_Settings]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -268,7 +268,7 @@ policy.
268268
For example:
269269

270270
```powershell
271-
pwsh.exe -ExecutionPolicy AllSigned
271+
powershell.exe -ExecutionPolicy AllSigned
272272
```
273273

274274
The execution policy that you set isn't stored in the registry. Instead, it's
@@ -329,7 +329,7 @@ evaluates the execution policies in the following precedence order:
329329
```
330330
Group Policy: MachinePolicy
331331
Group Policy: UserPolicy
332-
Execution Policy: Process (or pwsh.exe -ExecutionPolicy)
332+
Execution Policy: Process (or powershell.exe -ExecutionPolicy)
333333
Execution Policy: LocalMachine
334334
Execution Policy: CurrentUser
335335
```

reference/5.1/Microsoft.PowerShell.Core/About/about_Functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to create and use functions in PowerShell.
33
Locale: en-US
4-
ms.date: 03/12/2024
4+
ms.date: 05/16/2024
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions?view=powershell-5.1&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about Functions
@@ -38,8 +38,8 @@ output returned from your function. However, the `return` keyword exits the
3838
function at that line. For more information, see [about_Return][16].
3939

4040
The function's statement list can contain different types of statement lists
41-
with the keywords `begin`, `process`, `end`, and `clean`. These statement lists
42-
handle input from the pipeline differently.
41+
with the keywords `begin`, `process`, and `end`. These statement lists handle
42+
input from the pipeline differently.
4343

4444
The [filter][04] keyword is used to create a type of function that runs on each
4545
object in the pipeline. A filter resembles a function with all its statements
@@ -138,7 +138,7 @@ For more information, see [about_Automatic_Variables][15].
138138
that reaches the function.
139139
- If the pipeline input that reaches the function is empty, the `process` block
140140
**does not** execute.
141-
- The `begin`, `end`, and `clean` blocks still execute.
141+
- The `begin` and `end` blocks still execute.
142142

143143
> [!IMPORTANT]
144144
> If a function parameter is set to accept pipeline input, and a `process`

0 commit comments

Comments
 (0)