Skip to content

Commit c33a4cc

Browse files
committed
fix typos
1 parent 025a6cd commit c33a4cc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

doc/Language/variables.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ re-applied by assigning C<Nil> to it:
875875
876876
=head2 Default Defined Variables Pragma
877877
878-
To force all variables to have a definedness contraint use the prama C<use
878+
To force all variables to have a definedness constraint use the prama C<use
879879
variables :D>. The pragma is lexically scoped and can be switched of with C<use
880880
variables :_>.
881881
@@ -889,7 +889,7 @@ my Int $i = 1; # that works
889889
890890
Please note that assigning L<Nil|/type/Nil> will revert the variable to it's
891891
default value. The default value of a defined constraint type is the type
892-
appended with C<:D> (e.g. C<Int:D>). That means a definedness contraint is no
892+
appended with C<:D> (e.g. C<Int:D>). That means a definedness constraint is no
893893
guarantee of definedness. This only applies to variable initializers, not to
894894
L<Signature|/type/Signature>s. or subsequent assignments to a variable.
895895

doc/Type/Exception.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ return the exception message.
3434
Special care should be taken that this method does not produce
3535
an exception itself.
3636
37-
try die "Something bad happend";
37+
try die "Something bad happened";
3838
if ($!) {
3939
say $!.message; # Something bad happened.
4040
}
@@ -48,7 +48,7 @@ Defined as:
4848
Returns the backtrace associated with the exception. Only makes sense
4949
on exceptions that have been thrown at least once.
5050
51-
try die "Something bad happend";
51+
try die "Something bad happened";
5252
if ($!) {
5353
say $!.backtrace;
5454
}

doc/Type/Hash.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ Note that with objects as keys, you cannot access non-string keys as strings:
149149
:{ -1 => 41, 0 => 42, 1 => 43 }<0>; # Any
150150
:{ -1 => 41, 0 => 42, 1 => 43 }{0}; # 42
151151
152-
=head2 Contraint value types
152+
=head2 Constraint value types
153153
154-
Place a type object inbetween the declarator and the name to contraint the type
154+
Place a type object in-between the declarator and the name to constraint the type
155155
of all values of a C<Hash>. Use a L<subset|/language/typesystem#subset> for
156156
constraints with a where-clause.
157157

doc/Type/IO/Handle.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ on strings.
6969
7070
=for code :skip-test
7171
my $fh = open 'path/to/file', :r;
72-
$fn.split(' ', close => True); # Returns file content splitted by a space and closes file;
72+
$fn.split(' ', close => True); # Returns file content split by a space and closes file;
7373
7474
=head2 method comb
7575

doc/Type/Nil.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type container will fail with a runtime error.
6565
$x.say; # (Int)
6666
6767
sub f( --> Int:D ){ Nil }; # this definedness constraint is ignored
68-
my Int:D $i = f; # this definedness contraint is not ignored, so throws
68+
my Int:D $i = f; # this definedness constraint is not ignored, so throws
6969
CATCH { default { put .^name, ': ', .Str } };
7070
# OUTPUT: «X::TypeCheck::Assignment: Type check failed in assignment to $y; expected Int but got Any (Any)»
7171

0 commit comments

Comments
 (0)