File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
reference/6/Microsoft.PowerShell.Core/About Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ Users who are familiar with languages like C or C\# might want to use the
21
21
` return ` keyword to make the logic of leaving a scope explicit.
22
22
23
23
In PowerShell, the results of each statement are returned as output, even
24
- without a statement that contains the Return keyword. Languages like C or C\#
24
+ without a statement that contains the ` return ` keyword. Languages like C or C\#
25
25
return only the value or values that are specified by the ` return ` keyword.
26
26
27
27
> [ !NOTE]
28
28
> Beginning in PowerShell 5.0, PowerShell added language for defining
29
29
> classes, by using formal syntax. In the context of a PowerShell class,
30
- > nothing is output from a method except what you specify using a
30
+ > nothing is output from a method except what you specify a
31
31
> ` return ` statement. You can read more about PowerShell classes in
32
32
> [ about_Classes] ( about_Classes.md ) .
33
33
@@ -52,7 +52,7 @@ return (2 + $a)
52
52
53
53
The following example uses the ` return ` keyword to exit a function at a
54
54
specific point if a conditional is met. Odd numbers are not multiplied
55
- because the return statement exits before that statement can execute.
55
+ because the ` return ` statement exits before that statement can execute.
56
56
57
57
``` powershell
58
58
function MultiplyEven
You can’t perform that action at this time.
0 commit comments