Skip to content

Commit 00fc350

Browse files
committed
Merge pull request #186 from awwaiid/curly-braces-consistency
Find all the references to curly braces and make them consistent
2 parents 820d1c7 + fb75c43 commit 00fc350

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

doc/Language/5to6-nutshell.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ I<Key/value-slicing>
359359
say join ',', %calories<pear plum>:kv; # Perl 6 (prettier version)
360360
=end item
361361
362-
Also note that the subscripting braces are now a normal postcircumfix
362+
Also note that the subscripting curly braces are now a normal postcircumfix
363363
operator rather than a special syntactic form, and thus L<checking for
364364
existence of keys|#exists> and L<removing keys|#delete> is done with
365365
adverbs.
@@ -411,7 +411,7 @@ In Perl 6, the curly braces are changed to parentheses.
411411
say keys %($hashref );
412412
say &($subref );
413413
414-
Note that in both Perl 5 and Perl 6, the surrounding braces or parens can
414+
Note that in both Perl 5 and Perl 6, the surrounding curly braces or parens can
415415
often be omitted, though the omission can reduce readability.
416416
417417
In Perl 5, the arrow operator, C«->» , is used for single access to a

doc/Language/5to6-perlop.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@ L<http://doc.perl6.org/language/quoting>.
240240
There is a quoting operator that allows absolute literal strings: C<Q> or
241241
C<「…」>, although the latter might be difficult to find on your keyboard,
242242
depending on your keyboard... Backslash escapes do I<not> apply in C<Q> quoted
243-
strings. E. g. C<Q{This is still a closing brace → \}> renders "This is still a
244-
closing brace → \".
243+
strings. E. g. C<Q{This is still a closing curly brace → \}> renders "This is still a
244+
closing curly brace → \".
245245
246246
C<q> does what you expect, allowing backslash escapes. E. g. C<q{This is
247-
not a closing brace → \}, but this is → }> returning "This is
248-
not a closing brace → }, but this is →". As in Perl 5, you can
247+
not a closing curly brace → \}, but this is → }> returning "This is
248+
not a closing curly brace → }, but this is →". As in Perl 5, you can
249249
get this behavior with single quotes.
250250
251251
C<qq> allows interpolation of variables. However, by default, only

doc/Language/control.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ In other words, it follows the same reification rules as everything else.
7474
7575
Technically, C<do> is a loop which runs exactly one iteration.
7676
77-
A C<do> may also be used on a bare statement (without brackets)
77+
A C<do> may also be used on a bare statement (without curly braces)
7878
but this is mainly just useful for avoiding the syntactical need to
7979
parenthesize a statement if it is the last thing in an expression:
8080

doc/Language/objects.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ instances and roles are meant for managing behavior and code reuse.
556556
say $clone-of-p.x; # 1
557557
=end code
558558
559-
Roles are immutable as soon as the compiler parses the closing bracket of
559+
Roles are immutable as soon as the compiler parses the closing curly brace of
560560
the role declaration.
561561
562562
=head2 Z<>Role Application

doc/Language/quoting.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ possible.
2525
2626
=for code :allow<B>
2727
Q<Make sure you B«<»matchB«>» opening and closing delimiters>
28-
Q{This is still a closing brace → B<\>}
28+
Q{This is still a closing curly brace → B<\>}
2929
3030
These examples produce:
3131
3232
A literal string
3333
More plainly.
3434
Almost any non-word character can be a delimiter!
3535
Make sure you <match> opening and closing delimiters
36-
This is still a closing brace → \
36+
This is still a closing curly brace → \
3737
3838
The other quote forms add to this basic functionality:
3939
@@ -43,7 +43,7 @@ The other quote forms add to this basic functionality:
4343
B<'>Very plainB<'>
4444
B<q[>This backB<\s>lash staysB<]>
4545
B<q[>This backB<\\>slash staysB<]> # Identical output
46-
B<q{>This is not a closing brace → B<\}>, but this is → B<}>
46+
B<q{>This is not a closing culy brace → B<\}>, but this is → B<}>
4747
B<Q :q $>There are no backslashes here, only lots of B<\$>B<\$>B<\$>!B<$>
4848
B<'>(Just kidding. ThereB<\'>s no money in that string)B<'>
4949
B<'>No $interpolation {here}!B<'>
@@ -60,7 +60,7 @@ These examples produce:
6060
Very plain
6161
This back\slash stays
6262
This back\slash stays
63-
This is not a closing brace → } but this is →
63+
This is not a closing curly brace → } but this is →
6464
There are no backslashes here, only lots of $$$!
6565
(Just kidding. There's no money in that string)
6666
No $interpolation {here}!

doc/Language/subscripts.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ collection to be sure whether the keys are strings or objects:
8585
my %h; %h{pi} = 1; say %h.perl; #-> { "3.14159265358979" => 1 }
8686
8787
While the invisible quotes around single names is built into C<=>>,
88-
string conversion is not built into the braces: it is a behavior
88+
string conversion is not built into the curly braces: it is a behavior
8989
of the default C<Hash>. Not all types of hashes or collections
9090
do so:
9191

doc/Language/syntax.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ A Perl 6 program is a list of statements, separated by semicolons C<;>.
6262
A semicolon after the final statement (or after the final statement inside a
6363
block) is optional, though it's good form to include it.
6464
65-
A closing curling brace followed by a newline character implies a statement
65+
A closing curly brace followed by a newline character implies a statement
6666
separator, which is why you don't need to write a semicolon before the last
6767
line in the code
6868

doc/Type/Block.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Block is Code { }
88
99
A C<Block> is a code object meant for small-scale code reuse. A block is
10-
created syntactically by a list of statements enclosed in curly brackets.
10+
created syntactically by a list of statements enclosed in curly braces.
1111
1212
Without an explicit signature or placeholder arguments, a block has C<$_>
1313
as a positional argument

0 commit comments

Comments
 (0)