Skip to content

Commit f35e1d6

Browse files
committed
fix grammar
1 parent acbc262 commit f35e1d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/Language/functions.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Attempting to return values of another type will cause a compilation error.
212212
=for code
213213
sub foo() returns Int { "a"; }; foo; # Type check fails
214214
215-
C<returns> and C<of> are equivalent, and both take only a Type since they are declaring a trait of the L<Callable>. The last declaration is, in fact, a type declaration, which obviously can take only a type. C«-->», however, can take either undefinite or definite values.
215+
C<returns> and C<of> are equivalent, and both take only a Type since they are declaring a trait of the L<Callable>. The last declaration is, in fact, a type declaration, which obviously can take only a type. C«-->», however, can take either undefined or definite values.
216216
217217
Note that C<Nil> and C<Failure> are exempt from return type constraints and
218218
can be returned from any routine, regardless of its constraint:

doc/Type/Any.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ You can square anything as long as it behaves like a number. In this case, there
200200
201201
3-item lists are not C<Rat>, so it descends recursively, but eventually only applies the operation to those that walk (or slither, as the case may be) like a C<Rat>.
202202
203-
Although on the surface (and name), C<duckmap> might look similar to L<C<deepmap>|/routine/deepmap>, the latter is applied recursively inconditionally of the type of the item.
203+
Although on the surface (and name), C<duckmap> might look similar to L<C<deepmap>|/routine/deepmap>, the latter is applied recursively regardless of the type of the item.
204204
205205
=head2 method nodemap
206206

0 commit comments

Comments
 (0)