Skip to content

Commit 7d03cdb

Browse files
committed
fix typos
1 parent 1c2228f commit 7d03cdb

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lib/Language/functions.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ sub circumfix:<START END>(*@elems) {
296296
say START 'a', 'b', 'c' END; # start a b c end
297297
=end code;
298298
299-
Postcircumfixes also receive the the term after which they are parsed as
299+
Postcircumfixes also receive the term after which they are parsed as
300300
an argument:
301301
302302
=begin code
@@ -314,7 +314,7 @@ tighter precedence than the one you specified, but looser than the
314314
next-tighter precedence level.
315315
316316
For example C<< infix:<*> >> has a tighter precedence than C<< infix:<+> >>,
317-
and squeezinge one in between works like this:
317+
and squeezing one in between works like this:
318318
319319
=begin code
320320
sub infix:<!!>($a, $b) is tighter(&infix:<+>) {
@@ -483,7 +483,7 @@ a 1; # Int 1\n Any 1\n Bakc in Int with 5
483483
=end code
484484
485485
Another common use case is to re-dispatch to the next routine in the chain,
486-
and not do anything else aftwards. That's why we have C<nextwith> and
486+
and not do anything else afterwards. That's why we have C<nextwith> and
487487
C<nextsame>, which call the next routine with arbitrary arguments
488488
(C<nextwith>) or with the same argument as the caller received (C<nextsame>),
489489
but never return to the caller. Or to phrase it differently, the C<nextsame>
@@ -549,7 +549,7 @@ sub double(Int(Cool) $x) {
549549
}
550550
551551
say double '21'; # 42
552-
say dobule Any; # Type check failed in binding $x; expected 'Cool' but got 'Any'
552+
say double Any; # Type check failed in binding $x; expected 'Cool' but got 'Any'
553553
=end code
554554
555555
Here the C<Int> is the target type to which the argument will be coerced, and
@@ -559,6 +559,6 @@ If the accepted input type is L<Any|/type/Any>, you can abbreviate C<Int(Any)>
559559
to C<Int()>.
560560
561561
Coercion types are supposed to work wherever types work, but Rakudo currently
562-
(2015.02) only implements them for subroutine paramters.
562+
(2015.02) only implements them for subroutine parameters.
563563
564564
=end pod

lib/Language/grammars.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ grammar, it tries to call a method of the same name as the grammar rule,
184184
giving it the newly create L<Match|/type/Match> object as a positional
185185
argument. If no such method exists, it is skipped.
186186
187-
Here is a contrieved example of a grammar and actions in action:
187+
Here is a contrived example of a grammar and actions in action:
188188
189189
=begin code
190190
use v6;
@@ -252,7 +252,7 @@ for @$res -> $p {
252252
}
253253
=end code
254254
255-
This produces the following ouput:
255+
This produces the following output:
256256
257257
=begin code
258258
Key: second Value: b

lib/Language/mop.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ corresponds to:
2626
2727
A.x();
2828
29-
(except that the declarative form runs at comple time, and the latter form
29+
(except that the declarative form runs at compile time, and the latter form
3030
does not).
3131
3232
The meta object behind an object can be obtained with C<$obj.HOW>, where HOW

lib/Language/variables.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ grammars, provided you activated the C<MONKEY-TYPING> pragma first.
453453
454454
Since classes are usually C<our> scoped, and thus global, this means modifying
455455
global state, which is strongly discouraged. For almost all situations, there
456-
are better soluations.
456+
are better solutions.
457457
458458
# don't do this
459459
use MONKEY-TYPING;

0 commit comments

Comments
 (0)