summaryrefslogtreecommitdiffhomepage
path: root/perl6.html.markdown
diff options
context:
space:
mode:
authorSamantha McVey <samantham@posteo.net>2016-12-31 15:27:27 -0800
committerSamantha McVey <samantham@posteo.net>2016-12-31 15:27:27 -0800
commitf7e27eb94b6c3c3bb1c9698d016d742967da3c61 (patch)
treecc1c87958e014d53df8293ae982b4e4ca39da01d /perl6.html.markdown
parentff3d2d1784cce6ff6b87f8ea47887aa8eee78036 (diff)
Have perl6 highlight as perl6 now
Also remove some trailing spaces.
Diffstat (limited to 'perl6.html.markdown')
-rw-r--r--perl6.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl6.html.markdown b/perl6.html.markdown
index 34ad70b7..defd1315 100644
--- a/perl6.html.markdown
+++ b/perl6.html.markdown
@@ -18,7 +18,7 @@ double paragraphs, and single notes.
`#=>` represents the output of a command.
-```perl
+```perl6
# Single line comment start with a pound
#`(
@@ -813,7 +813,7 @@ die X::AdHoc.new(payload => 'Error!');
# Undefined values include: `Nil`, `Mu` and `Failure` as well as `Int`, `Str`
# and other types that have not been initialized to any value yet.
# You can check if something is defined or not using the defined method:
-my $uninitialized;
+my $uninitialized;
say $uninitiazilzed.defined; #> False
# When using `orelse` it will disarm the exception and alias $_ to that failure
# This will avoid it being automatically handled and printing lots of scary
@@ -1092,7 +1092,7 @@ say (1, 10, (20, 10) ).flat; #> (1 10 20 10) Now the iterable is flat
# - `lazy` - Defer actual evaluation until value is fetched (forces lazy context)
my @lazy-array = (1..100).lazy;
-say @lazy-array.is-lazy; #> True # Check for lazyness with the `is-lazy` method.
+say @lazy-array.is-lazy; #> True # Check for lazyness with the `is-lazy` method.
say @lazy-array; #> [...] List has not been iterated on!
my @lazy-array { .print }; # This works and will only do as much work as is
# needed.