Skip to content

Commit 4416cdb

Browse files
committed
fix typos, learn word, avoid short form
1 parent d5f23ae commit 4416cdb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/Language/control.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ have unnecessary semicolons for clarity.
8888
8989
The C<when> block is not usually a stand-alone block since it most commonly used
9090
inside C<given>, C<for>, and C<loop> blocks and special details of its usage in
91-
those contexts are discussed there. However, there are a few subleties in proper
91+
those contexts are discussed there. However, there are a few subtleties in proper
9292
syntax of the contents inside the block's curly braces worth high-lighting.
9393
Treat the contents pretty much as any block except for function calls. (Details are found
94-
L<here|/language/syntax#Signature_literals>A). For example, calling a help function (C<sub help>)
94+
L<here|/language/syntax#Signature_literals>). For example, calling a help function (C<sub help>)
9595
from a CLI program argument list:
9696
9797
=begin code :skip-test
9898
for @*ARGS {
9999
# ... other when blocks
100-
when /:i ^ h/ { &help } # v1: error, no parens with sub ref
101-
when /:i ^ h/ { &help; } # v2: error, no parens with sub ref
100+
when /:i ^ h/ { &help } # v1: error, no parentheses with sub ref
101+
when /:i ^ h/ { &help; } # v2: error, no parentheses with sub ref
102102
when /:i ^ h/ { &help() } # v3: calls sub help ok
103103
when /:i ^ h/ { help } # v4: calls sub help ok
104104
when /:i ^ h/ { help() } # v5: calls sub help ok

xt/words.pws

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ cis
147147
classhow
148148
classname
149149
classtut
150+
cli
150151
closedir
151152
cmd
152153
cmp

0 commit comments

Comments
 (0)