Skip to content

Commit 9f456d0

Browse files
authored
Fix typos in rules (#1913)
1 parent 60c27ac commit 9f456d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/Rules/AvoidUsingComputerNameHardcoded.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Function Invoke-MyCommand ($ComputerName)
4545
```powershell
4646
Function Invoke-MyLocalCommand ()
4747
{
48-
Invoke-Command -Port 343 -ComputerName 'hardcodelocalhostname'
48+
Invoke-Command -Port 343 -ComputerName hardcodelocalhostname
4949
}
5050
```
5151

docs/Rules/ShouldProcess.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function Set-File
6262
[string]$Content
6363
)
6464
65-
if ($PSCmdlet.ShouldProcess($Path, ('Setting content to '{0}'' -f $Content)))
65+
if ($PSCmdlet.ShouldProcess($Path, ("Setting content to '{0}'" -f $Content)))
6666
{
6767
$Content | Out-File -FilePath $Path
6868
}

0 commit comments

Comments
 (0)