Skip to content

Commit bc016c6

Browse files
committed
last batch of my S03 typo/grammaro fixes
1 parent a2c0304 commit bc016c6

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

S03-operators.pod

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ descriptions are here; special topics are covered afterwards.
113113
=head2 Term precedence
114114

115115
This isn't really a precedence level, but it's in here because no operator
116-
can have tighter precedence than a term. See S02 for longer descriptions of
116+
can have tighter precedence than a term. See L<S02> for longer descriptions of
117117
various terms. Here are some examples.
118118

119119
=over
@@ -314,7 +314,7 @@ for subscripts. Since these are the tightest standard operator,
314314
you can often think of a series of method calls as a single term that
315315
merely expresses a complicated name.
316316

317-
See S12 for more discussion of single dispatch method calls.
317+
See L<S12> for more discussion of single dispatch method calls.
318318

319319
=over
320320

@@ -409,7 +409,7 @@ behavior unless some explicit sequencing operator is interposed.
409409
See L</Sequence points>.
410410

411411
As with all postfix operators in Perl 6, no space is allowed between
412-
a term and its postfix. See S02 for why, and for how to work around the
412+
a term and its postfix. See L<S02> for why, and for how to work around the
413413
restriction with an "unspace".
414414

415415
As mutating methods, all these operators dispatch to the type of
@@ -2800,7 +2800,7 @@ This also includes any operator that would look like something
28002800
with a special meaning if used after the method-calling dot. For example,
28012801
if you defined a C<< prefix:<=> >>, and you wanted to write it using
28022802
the method-call syntax instead of C<=$object>, the parser would take
2803-
C<$object.=> as the mutation syntax (see S12, "Mutating methods").
2803+
C<$object.=> as the mutation syntax (see L<S12>, "Mutating methods").
28042804
Writing C<$object.'='> will call your prefix operator.
28052805

28062806
=item *
@@ -2885,9 +2885,9 @@ The unary backslash operator is not really an operator, but a special noun form.
28852885
It "captures" its argument or arguments, and returns an
28862886
object representing those arguments. You can I<dereference> this object
28872887
in several ways to retrieve different parts of the arguments; see the
2888-
definition of C<Capture> in S02 for details. (No whitespace is allowed
2888+
definition of C<Capture> in L<S02> for details. (No whitespace is allowed
28892889
after the backslash because that would instead start an "unspace", that is,
2890-
an escaped sequence of whitespace or comments. See S02 for details.
2890+
an escaped sequence of whitespace or comments. See L<S02> for details.
28912891
However, oddly enough, because of that unspace rule, saying C<\\ $foo>
28922892
turns out to be equivalent to C<\$foo>.)
28932893

@@ -3481,7 +3481,7 @@ integers are assumed to represent points on the real number line:
34813481
1.5 ~~ 1^..^2 # true, equivalent to 1 < 1.5 < 2
34823482
2.1 ~~ 1..2 # false, equivalent to 1 <= 2.1 <= 2
34833483

3484-
If a C<*> (see the "Whatever" type in S02) occurs on the right side
3484+
If a C<*> (see the "Whatever" type in L<S02>) occurs on the right side
34853485
of a range, it is taken to mean "positive infinity" in whatever
34863486
typespace the range is operating, as inferred from the left operand.
34873487
A C<*> on the left means "negative infinity" for types that support
@@ -3721,7 +3721,7 @@ C<Buf> role may be a parametric type that allows you to instantiate
37213721
buffers with various known encodings. In the absence of such typing
37223722
information, you may still do pattern matching against the buffer, but
37233723
(apart from assuming the lowest 7 bits represent ASCII) any attempt
3724-
to treat the buffer as other than a sequence integers is erroneous,
3724+
to treat the buffer as other than a sequence of integers is erroneous,
37253725
and warnings may be generously issued.
37263726

37273727
Matching against a C<Grammar> treats the grammar as a typename,
@@ -3752,8 +3752,8 @@ cannot be specified that way.)
37523752

37533753
There is no pattern matching defined for the C<Any> pattern, so if you
37543754
find yourself in the situation of wanting a reversed smartmatch test
3755-
with an C<Any> on the right, you can almost always get it by explicit
3756-
call to the underlying C<ACCEPTS> method using $_ as the pattern.
3755+
with an C<Any> on the right, you can almost always get it by an explicit
3756+
call to the underlying C<ACCEPTS> method using C<$_> as the pattern.
37573757
For example:
37583758

37593759
$_ X Type of Match Wanted What to use on the right
@@ -3765,7 +3765,7 @@ For example:
37653765
etc.
37663766

37673767
Similar tricks will allow you to bend the default matching rules for
3768-
composite objects as long as you start with a dotted method on $_:
3768+
composite objects as long as you start with a dotted method on C<$_>:
37693769

37703770
given $somethingordered {
37713771
when .values.'[<=]' { say "increasing" }
@@ -3817,7 +3817,7 @@ Various proposed-but-deprecated smartmatch behaviors may be easily
38173817
(Note that the C<.cat> method and the C<Cat> type coercion both take a
38183818
single object, unlike the C<cat> function which, as a list operator,
38193819
takes a syntactic list (or multilist) and flattens it. All of these
3820-
return a Cat object, however.)
3820+
return a C<Cat> object, however.)
38213821

38223822
Boolean expressions are those known to return a boolean value, such
38233823
as comparisons, or the unary C<?> operator. They may reference C<$_>
@@ -3977,7 +3977,7 @@ or with leftward feeds as:
39773977
<== grep { /^ \d+ $/ }
39783978
<== @data;
39793979

3980-
Either form more clearly indicates the flow of data. See S06 for
3980+
Either form more clearly indicates the flow of data. See L<S06> for
39813981
more of the (less-than-obvious) details on these two operators.
39823982

39833983
=head1 Meta operators
@@ -4384,12 +4384,12 @@ for instance, if you say:
43844384

43854385
%outer »+» %inner;
43864386

4387-
only the %inner keys that already exist in %outer will occur in the result.
4387+
only the C<%inner> keys that already exist in C<%outer> will occur in the result.
43884388
Note, however, that you want
43894389

43904390
%outer »+=« %inner;
43914391

4392-
in order to pass accumulated statistics up a tree, assuming you want %outer
4392+
in order to pass accumulated statistics up a tree, assuming you want C<%outer>
43934393
to have the union of keys.
43944394

43954395
Unary hash hypers and binary hypers that have only one hash operand
@@ -4406,8 +4406,8 @@ is short for something like:
44064406

44074407
@array[0..^@array], @array[*-1] xx *
44084408

4409-
Note that hypers promise that you don't care what order the processing
4410-
happens in, only that the resulting structure ends up in a form consistent
4409+
Note that hypers promise that you don't care in what order the processing
4410+
happens, only that the resulting structure ends up in a form consistent
44114411
with the inputs. There is no promise from the system that the operation
44124412
I<will> be parallelized. Effective parallelization requires some means
44134413
of partitioning the work without doing more extra work than you save.
@@ -4896,7 +4896,7 @@ to include:
48964896
state $foo # persistent lexical (cloned with closures)
48974897

48984898
Variable declarators such as C<my> now take a I<signature> as their
4899-
argument. (The syntax of function signatures is described more fully in S06.)
4899+
argument. (The syntax of function signatures is described more fully in L<S06>.)
49004900

49014901
The parentheses around the signature may be omitted for a
49024902
simple declaration that declares a single variable, along with its
@@ -4973,7 +4973,7 @@ each variable:
49734973
my Dog ($b, $c);
49744974
my (Dog $b, Dog $c); # same thing
49754975

4976-
[XXX the following probably belongs in S06.]
4976+
[XXX the following probably belongs in L<S06>.]
49774977
The syntax for constructing a C<Signature> object when the parser isn't already
49784978
expecting one is:
49794979

@@ -5015,7 +5015,7 @@ are bound C<rw> by default rather than C<readonly>. See Binding above.
50155015

50165016
Note that C<temp> and C<let> are I<not> variable declarators, because
50175017
their effects only take place at runtime. Therefore, they take an ordinary
5018-
lvalue object as their argument. See S04 for more details.
5018+
lvalue object as their argument. See L<S04> for more details.
50195019

50205020
There are a number of other declarators that are not variable
50215021
declarators. These include both type declarators:
@@ -5217,7 +5217,7 @@ constructs:
52175217
while $i < 10 { $i++ }
52185218

52195219
It is, however, still possible to align subscripts and other postfix
5220-
operators by explicitly using the I<unspace> syntax (see S02):
5220+
operators by explicitly using the I<unspace> syntax (see L<S02>):
52215221

52225222
%squirrels{'fluffy'} = Squirrel.new;
52235223
%monsters.{'cookie'} = Monster.new;

0 commit comments

Comments
 (0)