Skip to content

Commit 6db737d

Browse files
committed
De-dups compunit and increment, refs #1912
1 parent c5191f6 commit 6db737d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/Language/modules.pod6

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ directory for executable programs and scripts.
4949
Source files generally use the C<.pm6> extension, and scripts or
5050
executables use the C<.p6>. Test files use the C<.t> extension. Files which contain documentation use the C<.pod6> extension.
5151
52+
X<|compunit>
5253
=head2 Loading and Basic Importing
5354
5455
Loading a module makes the packages in the same namespace declared
5556
within available in the file scope of the loader. Importing from a
5657
module makes the symbols exported available in the lexical scope of
5758
the importing statement.
5859
59-
=head3 X<need|compunit>
60+
=head3 C<need>X<|need>
6061
6162
C<need> loads a C<compunit> at compile time.
6263
@@ -76,7 +77,7 @@ C<MyModule::Class> will be defined when C<MyModule> is loaded.
7677
7778
=comment class Class { ... } won't get exported automatically on loading...not sure if bug or..
7879
79-
=head3 X<use|compunit>
80+
=head3 C<use> X<|use>
8081
8182
C<use> loads and then imports from a compunit at compile time. It will look for
8283
files that end in C<.pm6> (C<.pm> is also supported). See
@@ -95,7 +96,7 @@ import MyModule;
9596
9697
See also L<Selective Importing|/language/modules#Exporting_and_Selective_Importing> to restrict what you import.
9798
98-
=head3 X<require|compunit>
99+
=head3 C<require>X<|require>
99100
100101
C<require> loads a compunit and imports definite symbols at runtime.
101102

doc/Language/operators.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ class or role, even after it has been redefined in the child class.
760760
761761
multi sub prefix:<++>($x is rw) is assoc<non>
762762
763-
Increments its argument by one and returns the updated value.X<|increment operator>
763+
Increments its argument by one and returns the updated value.X<|prefix increment operator>
764764
765765
my $x = 3;
766766
say ++$x; # OUTPUT: «4␤»
@@ -789,7 +789,7 @@ semantics.
789789
790790
multi sub postfix:<++>($x is rw) is assoc<non>
791791
792-
Increments its argument by one and returns the original value.X<|increment operator>
792+
Increments its argument by one and returns the original value.X<|postfix increment operator>
793793
794794
my $x = 3;
795795
say $x++; # OUTPUT: «3␤»

0 commit comments

Comments
 (0)