Skip to content

Commit 83ea8ae

Browse files
committed
whitespace
1 parent ca198c7 commit 83ea8ae

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

doc/Language/glossary.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,8 +1232,8 @@ X<|Virtual Machine>
12321232
12331233
A virtual machine is the Perl compiler entity that executes the
12341234
L<bytecode|#bytecode>. It can optimize the bytecode or generate machine code
1235-
Just in Time. Examples are L<#MoarVM>, L<#Parrot> (who are intended to run Perl
1236-
6) and more generic virtual machines such as JVM and Javascript.
1235+
Just in Time. Examples are L<#MoarVM>, L<#Parrot> (who are intended to run
1236+
Perl 6) and more generic virtual machines such as JVM and Javascript.
12371237
12381238
=head1 whitespace
12391239
X<|whitespace>

doc/Language/hashmap.pod6

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ of all values of a C<Hash>.
334334
335335
my Int %h;
336336
put %h<Goku> = 900;
337-
337+
338338
try {
339339
%h<Vegeta> = "string";
340340
CATCH { when X::TypeCheck::Binding { .message.put } }
@@ -343,36 +343,36 @@ of all values of a C<Hash>.
343343
# OUTPUT:
344344
# 9001
345345
# Type check failed in assignment to %h; expected Int but got Str ("string")
346-
346+
347347
You can do the same by a more readable syntax.
348348
349349
my %h of Int; # the same as my Int %h
350-
350+
351351
If you want to constraint the type of all keys of a C<Hash>, add C<{Type}> following
352352
the name of variable.
353353
354354
my %h{Int};
355-
355+
356356
Even put these two constriant together.
357357
358358
my %h{Int} of Int;
359359
put %h{21} = 42;
360-
360+
361361
try {
362362
%h{0} = "String";
363363
CATCH { when X::TypeCheck::Binding { .message.put } }
364364
}
365-
365+
366366
try {
367367
%h<string> = 42;
368368
CATCH { when X::TypeCheck::Binding { .message.put } }
369369
}
370-
370+
371371
try {
372372
%h<string> = "String";
373373
CATCH { when X::TypeCheck::Binding { .message.put } }
374374
}
375-
375+
376376
# OUTPUT:
377377
# 42
378378
# Type check failed in binding to parameter 'assignval'; expected Int but got Str ("String")

0 commit comments

Comments
 (0)