Skip to content

Commit 85894ad

Browse files
committed
fix typos
1 parent d2466f4 commit 85894ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Type/Nil.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
The value C<Nil> may be used to fill a spot where a value would normally
1010
go, and in so doing, explicitly indicate that no value is present. It
11-
may also used as a cheaper and less explosive alternative to a
11+
may also be used as a cheaper and less explosive alternative to a
1212
L<C<Failure>|/type/Failure>. (In fact, class C<Failure> is derived from C<Nil>,
1313
so smartmatching C<Nil> will also match C<Failure>.)
1414
@@ -24,7 +24,7 @@ is considered undefined for all other purposes.
2424
sub a( --> Int:D ) { return Nil }
2525
a().say; # Nil
2626
27-
C<Nil> is what is returned from empty routines or clauses, or routines
27+
C<Nil> is what is returned from empty routines or closure, or routines
2828
that use a bare C<return> statement.
2929
3030
sub a { }; a().say; # Nil
@@ -52,7 +52,7 @@ C<Nil>.
5252
5353
When assigned to a container, the C<Nil> value (but not any subclass of
5454
C<Nil>) will attempt to revert the container to its default value; if no
55-
such default is declared, Perl 6 assumes C<Any>. However, if the container's
55+
such default is declared, Perl 6 assumes C<Any>. However, if the container
5656
type is constrained with C<:D>, assigning C<Nil> to it will immediately throw
5757
an exception. (In contrast, an instantiated C<Failure> matches C<:D>
5858
because it's a definite value, but will fail to match the actual nominal

0 commit comments

Comments
 (0)