Skip to content

Commit c54c8fe

Browse files
TimCurwickJamesWTruher
authored andcommitted
Fix typo in .Description for Measure-RequiresModules (#888)
* Fix typo in comment-based help * Added to typo fix
1 parent d424544 commit c54c8fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function Measure-RequiresRunAsAdministrator
126126
.DESCRIPTION
127127
The #Requires statement prevents a script from running unless the Windows PowerShell version, modules, snap-ins, and module and snap-in version prerequisites are met.
128128
From Windows PowerShell 3.0, the #Requires statement let script developers specify Windows PowerShell modules that the script requires.
129-
To fix a violation of this rule, please consider to use #Requires -RunAsAdministrator instead of using Import-Module.
129+
To fix a violation of this rule, please consider to use #Requires -Modules { <Module-Name> | <Hashtable> } instead of using Import-Module.
130130
.EXAMPLE
131131
Measure-RequiresModules -ScriptBlockAst $ScriptBlockAst
132132
.INPUTS
@@ -938,4 +938,4 @@ function Measure-HelpNote
938938
}
939939
}
940940

941-
Export-ModuleMember -Function Measure*
941+
Export-ModuleMember -Function Measure*

0 commit comments

Comments
 (0)