Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow sample code to compile
  • Loading branch information
coke committed Sep 20, 2018
1 parent 2126875 commit 1521c9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/Language/variables.pod6
Expand Up @@ -67,10 +67,12 @@ declaration of the variable. Assuming we have a C<FailHash> class:
One can then define a C<%h> variable using C<is>:
=for code :preamble<class FailHash {}>
my %h is FailHash = oranges => "round", bananas => "bendy";
And then run the following code:
=for code :preamble<my %h>
say %h<oranges>;
# OUTPUT: «round␤»
%h.finalize;
Expand Down

0 comments on commit 1521c9f

Please sign in to comment.