Skip to content

Commit 5b11c47

Browse files
committed
Merge pull request #521 from MasterDuke17/master
Fixed some typos in Range.pod
2 parents 90918d3 + a52bd24 commit 5b11c47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Type/Range.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ starting from zero:
2525
^$x # same as 0 ..^ $x.Numeric
2626
2727
Iterating a range (or calling the C<list> method) uses the same semantics as
28-
the C<++> prefix and postfix operators, i.e. it calls the C<succ> method on
29-
the start point, and then generated elements).
28+
the C<++> prefix and postfix operators, i.e., it calls the C<succ> method on
29+
the start point, and then the generated elements.
3030
3131
Ranges always go from small to larger elements; if the start point is bigger
3232
than the end point, the range is considered empty.
@@ -42,7 +42,7 @@ increment-by-1.
4242
4343
Use C<Inf> or C<*> (Whatever) to indicate an end point to be open-ended.
4444
45-
for 1..* { .say } # start from 1, continue until stopped
45+
for 1..* { .say } # start from 1, continue until stopped
4646
for 1..Inf { .say } # the same
4747
4848
=head1 Methods
@@ -95,10 +95,10 @@ Returns C<True> if both end points are C<Int> values.
9595
9696
method bounds(Range:D:) returns Positional
9797
98-
If the C<Range> is an integer range (as indicated by L<is-int>, then this
98+
If the C<Range> is an integer range (as indicated by L<is-int>), then this
9999
method returns a list with the first and last value it will iterate over
100100
(taking into account L<excludes-min> and L<excludes-max>). Returns a
101-
Failure If it is not an integer range.
101+
Failure if it is not an integer range.
102102
103103
=head2 method elems
104104

0 commit comments

Comments
 (0)