Skip to content

Commit

Permalink
Fix typos in rules (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler authored May 24, 2023
1 parent 60c27ac commit 9f456d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Rules/AvoidUsingComputerNameHardcoded.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Function Invoke-MyCommand ($ComputerName)
```powershell
Function Invoke-MyLocalCommand ()
{
Invoke-Command -Port 343 -ComputerName 'hardcodelocalhostname'
Invoke-Command -Port 343 -ComputerName hardcodelocalhostname
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/Rules/ShouldProcess.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function Set-File
[string]$Content
)
if ($PSCmdlet.ShouldProcess($Path, ('Setting content to '{0}'' -f $Content)))
if ($PSCmdlet.ShouldProcess($Path, ("Setting content to '{0}'" -f $Content)))
{
$Content | Out-File -FilePath $Path
}
Expand Down

0 comments on commit 9f456d0

Please sign in to comment.