File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,8 @@ of the routine. Any return statement in that routine has to be argumentless.
176
176
177
177
sub foo(--> 123) { return }
178
178
179
- L < C < Nil > |/type/Nil> and L < C < Failure > |/type/Failure> are always allowed as return types, reguardless of any
180
- type contrain .
179
+ L < C < Nil > |/type/Nil> and L < C < Failure > |/type/Failure> are always allowed as return types, regardless of any
180
+ type constraint .
181
181
182
182
sub foo(--> Int) { Nil };
183
183
say foo.perl; # Nil
Original file line number Diff line number Diff line change @@ -693,7 +693,7 @@ Example:
693
693
Replaces one or many substrings with one or many strings. Ranges are supported, both for keys and
694
694
values. Regexes work as keys. When called with C < :complement > anything but the matched value or range
695
695
is replaced with a single value. With C < :delete > the matched characters are removed.
696
- Combining C < :complement > and C < :delete > will remove anything but the mached values.
696
+ Combining C < :complement > and C < :delete > will remove anything but the matched values.
697
697
The adverb C < :squash > will reduce repeated matched characters to a single character.
698
698
699
699
Example:
You can’t perform that action at this time.
0 commit comments