Skip to content

Commit b76c4be

Browse files
committed
Lowercasing unduly capitalized headers
1 parent 8192aa4 commit b76c4be

File tree

1 file changed

+29
-27
lines changed

1 file changed

+29
-27
lines changed

doc/Language/syntax.pod6

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ If instead we had declared C<dice> as a regular
317317
C<dice(+(dice()))>, resulting in an error since C<sub dice> expects zero
318318
arguments.
319319
320-
=head1 Statements and Expressions
320+
=head1 Statements and expressions
321321
322322
Perl 6 programs are made of lists of statements. A special case of a statement
323323
is an I<expression>, which returns a value. For example C<if True { say 42 }>
@@ -340,10 +340,10 @@ C<$x>.
340340
341341
=head1 Terms
342342
343-
Terms are the basic nouns that, optionally together with operators, can form
344-
expressions. Examples for terms are variables (C<$x>), barewords such as type
345-
names (C<Int>), literals (C<42>), declarations (C<sub f() { }>) and calls
346-
(C<f()>).
343+
Terms are the basic nouns that, optionally together with operators, can
344+
form expressions. Examples for terms are variables (C<$x>), barewords
345+
such as type names (C<Int>), literals (C<42>), declarations (C<sub f() { }>)
346+
and calls (C<f()>).
347347
348348
For example, in the expression C<2 * $salary>, C<2> and C<$salary> are two
349349
terms (an L<integer|/type/Int> literal and a L<variable|/language/variables>).
@@ -362,7 +362,7 @@ them.
362362
See the L<documentation on variables|/language/variables> for more details.
363363
364364
365-
=head2 Barewords (Constants, Type Names)
365+
=head2 Barewords (constants, type names)
366366
367367
Pre-declared identifiers can be terms on their own. Those are typically type
368368
names or constants, but also the term C<self> which refers to an object that
@@ -386,7 +386,7 @@ variables:
386386
# ^^^ type name
387387
388388
389-
=head2 Packages and Qualified Names
389+
=head2 Packages and qualified names
390390
391391
Named entities, such as variables, constants, classes, modules or subs,
392392
are part of a namespace. Nested parts of a name use C<::> to separate
@@ -639,10 +639,11 @@ You can also assign subroutines to variables.
639639
my &f = -> { say "Hello!" } # Lambda style syntax. The & sigil indicates the variable holds a function
640640
my $f = -> { say "Hello!" } # Functions can also be put into scalars
641641
642-
=head3 X<Package, Module, Class, Role, and Grammar declaration|declarator,unit;declarator,module;declarator,package>
642+
=head3 X<C<Package>, C<Module>, C<Class>, C<Role>, and C<Grammar> declaration|declarator,unit;declarator,module;declarator,package>
643643
644-
There are several types of package, each declared with a keyword, a name, some optional traits, and a
645-
body of subroutines, methods, or rules.
644+
There are several types of package, each declared with a keyword, a
645+
name, some optional traits, and a body of subroutines, methods, or
646+
rules.
646647
647648
package P { }
648649
@@ -654,9 +655,10 @@ body of subroutines, methods, or rules.
654655
655656
grammar G { }
656657
657-
You can declare a C<unit> package without explicit curly brackets. This must be at the start of the
658-
file (preceded only by comments or C<use> statements), and the rest of the file will be taken as
659-
being the body of the package.
658+
You can declare a C<unit> package without explicit curly brackets. This
659+
must be at the start of the file (preceded only by comments or C<use>
660+
statements), and the rest of the file will be taken as being the body of
661+
the package.
660662
661663
=begin code :skip-test
662664
unit module M;
@@ -703,16 +705,16 @@ are subroutines invoked against an object (i.e., a class instance).
703705
Within a method the special variable C<self> contains the object instance
704706
(see L<Methods|/language/classtut#Methods>).
705707
706-
=begin code :skip-test
707-
# Method invocation. Object (instance) is $person, method is set-name-age
708-
$person.set-name-age('jane', 98); # Most common way
709-
$person.set-name-age: 'jane', 98; # Precedence drop
710-
set-name-age($person: 'jane', 98); # Invocant marker
711-
=end code
708+
=begin code :skip-test
709+
# Method invocation. Object (instance) is $person, method is set-name-age
710+
$person.set-name-age('jane', 98); # Most common way
711+
$person.set-name-age: 'jane', 98; # Precedence drop
712+
set-name-age($person: 'jane', 98); # Invocant marker
713+
=end code
712714
713715
For more information see L<functions|/language/functions>.
714716
715-
=head2 Precedence Drop
717+
=head2 Precedence drop
716718
717719
In the case of method invocation (i.e., when invoking a subroutine against
718720
a class instance) it is possible to apply the C<precedence drop>, identified
@@ -728,9 +730,9 @@ method calls):
728730
say $band.substr: 0, 3 .substr( 0, 1 ); # Foo
729731
=end code
730732
731-
In the second method call the rightmost C<substr> is applied to "3" and not
732-
to the result of the leftmost C<substr>, which on the other hand yields precedence
733-
to the rightmost one.
733+
In the second method call the rightmost C<substr> is applied to "3" and
734+
not to the result of the leftmost C<substr>, which on the other hand
735+
yields precedence to the rightmost one.
734736
735737
=head1 Operators
736738
@@ -750,11 +752,11 @@ There are five types (arrangements) for operators, each taking either one or two
750752
%foo<bar> # postcircumfix, operator comes after first input and surrounds second
751753
=end code
752754
753-
=head2 Meta Operators
755+
=head2 Metaoperators
754756
755-
Operators can be composed. A common example of this is combining an infix
756-
(binary) operator with assignment. You can combine assignment with any binary
757-
operator.
757+
Operators can be composed. A common example of this is combining an
758+
infix (binary) operator with assignment. You can combine assignment with
759+
any binary operator.
758760
759761
=begin code :skip-test
760762
$x += 5 # Adds 5 to $x, same as $x = $x + 5

0 commit comments

Comments
 (0)