Skip to content

Commit 3a23428

Browse files
authored
Merge pull request #11527 from MicrosoftDocs/main
11/8/2024 PM Publish
2 parents 4b22913 + 03f8d66 commit 3a23428

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

reference/7.5/Microsoft.PowerShell.Core/About/about_Command_Syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ The syntax diagrams use the following symbols:
166166

167167
The placeholder inside the angle brackets identifies the .NET type of the
168168
value that a parameter takes. For example, to use the **Name** parameter of
169-
the `Get-Command ` cmdlet, you replace the `<string[]>` with one or more
169+
the `Get-Command` cmdlet, you replace the `<string[]>` with one or more
170170
strings separated by commas (`,`).
171171

172172
<!-- `[]` - also known as binkies -->

reference/7.5/Microsoft.PowerShell.Core/About/about_If.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ $service.Status -eq 'Running' ? (Stop-Service $service) : (Start-Service $servic
133133
In this example, if the service is running, it's stopped, and if its status is
134134
not **Running**, it's started.
135135

136-
137136
If a `<condition>`, `<if-true>`, or `<if-false>` expression calls a command,
138137
you must wrap it in parentheses. If you don't, PowerShell raises an argument
139138
exception for the command in the `<condition>` expression and parsing

reference/7.5/Microsoft.PowerShell.Core/About/about_Path_Syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The following examples are based on the current working directory being set to
8787
When using a path in a command, you can use a fully qualified path or a
8888
relative one. For example, suppose that your current working directory is
8989
`C:\Windows`. The following `Get-ChildItem` command retrieves all items in the
90-
`C:\TechDocs `directory:
90+
`C:\TechDocs` directory:
9191

9292
```powershell
9393
Get-ChildItem \TechDocs

reference/7.5/Microsoft.PowerShell.Core/About/about_Providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ drive:\location\child-location\...
233233
```
234234

235235
For example, to change your location to the `HKLM\Software` registry key, type
236-
a `Set-Location `command, such as:
236+
a `Set-Location` command, such as:
237237

238238
```powershell
239239
Set-Location HKLM:\SOFTWARE\

reference/7.5/Microsoft.PowerShell.Core/About/about_Ref.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ of a variable that is passed to it.
1616

1717
## Long description
1818

19-
You can pass variables to functions *by reference* or *by value*.
19+
You can pass variables to functions _by reference_ or _by value_.
2020

21-
When you pass a variable *by value*, you are passing a copy of the data.
21+
When you pass a variable _by value_, you are passing a copy of the data.
2222

2323
In the following example, the function changes the value of the variable passed
2424
to it. In PowerShell, integers are value types so they are passed by value.
@@ -41,9 +41,9 @@ $var
4141

4242
In the following example, a variable containing a `Hashtable` is passed to a
4343
function. `Hashtable` is an object type so by default it is passed to the
44-
function *by reference*.
44+
function _by reference_.
4545

46-
When passing a variable *by reference*, the function can change the data and
46+
When passing a variable _by reference_, the function can change the data and
4747
that change persists after the function executes.
4848

4949
```powershell

reference/7.5/Microsoft.PowerShell.Security/Set-ExecutionPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ policy. The policy is set for the default scope, `LocalMachine`.
235235
The `Get-ExecutionPolicy` cmdlet shows that `RemoteSigned` is the effective execution policy for
236236
the current PowerShell session.
237237

238-
The `Start-ActivityTracker.ps1 script is executed from the current directory. The script is blocked
238+
The `Start-ActivityTracker.ps1` script is executed from the current directory. The script is blocked
239239
by `RemoteSigned` because the script isn't digitally signed.
240240

241241
For this example, the script's code was reviewed and verified as safe to run. The `Unblock-File`

reference/7.5/Microsoft.PowerShell.Utility/Measure-Object.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ Property : num
243243

244244
### Example 11: Measure the Standard Deviation
245245

246-
Beginning in PowerShell 6, `Measure-Object` supports the `-StandardDeviation` parameter. The
247-
following example determines the *standard deviation* for the CPU used by all processes. A large
246+
Beginning in PowerShell 6, `Measure-Object` supports the **StandardDeviation** parameter. The
247+
following example determines the _standard deviation_ for the CPU used by all processes. A large
248248
deviation would indicate a small number of processes consuming the most CPU.
249249

250250
```powershell
@@ -344,7 +344,7 @@ Accept wildcard characters: False
344344
Indicates that the cmdlet counts the number of characters in the input objects.
345345
346346
> [!NOTE]
347-
> The **Word**, **Char** and **Line** switches count *inside* each input object, as well as *across*
347+
> The **Word**, **Char** and **Line** switches count _inside_ each input object, as well as _across_
348348
> input objects. See Example 7.
349349
350350
```yaml
@@ -404,7 +404,7 @@ Accept wildcard characters: False
404404
Indicates that the cmdlet counts the number of lines in the input objects.
405405

406406
> [!NOTE]
407-
> The **Word**, **Char** and **Line** switches count *inside* each input object, as well as *across*
407+
> The **Word**, **Char** and **Line** switches count _inside_ each input object, as well as _across_
408408
> input objects. See Example 7.
409409

410410
```yaml
@@ -509,7 +509,7 @@ Accept wildcard characters: False
509509
Indicates that the cmdlet counts the number of words in the input objects.
510510

511511
> [!NOTE]
512-
> The **Word**, **Char** and **Line** switches count *inside* each input object, as well as *across*
512+
> The **Word**, **Char** and **Line** switches count _inside_ each input object, as well as _across_
513513
> input objects. See Example 7.
514514

515515
```yaml

reference/7.5/Microsoft.PowerShell.Utility/Out-String.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ parameter to find matches for the text **gcm**.
112112
> If you omit the **Stream** parameter, the command displays all the aliases because `Select-String`
113113
> finds the text **gcm** in the single string that `Out-String` returns.
114114
115-
### Example 3: Use the Width parameter to prevent truncation.
115+
### Example 3: Use the Width parameter to prevent truncation
116116

117117
While most output from `Out-String` is wrapped to the next line, there are scenarios where the
118118
output is truncated by the formatting system before being passed to `Out-String`. You can avoid

reference/7.5/Microsoft.PowerShell.Utility/Wait-Debugger.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ line 13.
9494
In this example, the `Wait-Debugger` command was inserted in the `CopyFile` method of a DSC
9595
resource. This is similar to using `Enable-RunspaceDebug -BreakAll` in a DSC resource but breaks at
9696
a specific point in the script.
97+
9798
```
9899
[DscResource()]
99100
class FileResource

reference/docs-conceptual/community/contributing/powershell-style-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,6 @@ Basic formatting guidelines:
338338
[05]: editorial-checklist.md
339339
[06]: https://en.wikipedia.org/wiki/PascalCase
340340
[07]: https://github.com/powershell/platyps
341-
[08]: https://github.com/PowerShell/platyPS/blob/master/platyPS.schema.md
341+
[08]: https://github.com/PowerShell/platyPS/blob/master/docs/developer/platyPS/platyPS.schema.md
342342
[09]: https://pandoc.org
343343
[10]: overview.md#get-started-writing-docs

0 commit comments

Comments
 (0)