Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add unit declarator to module and class declarations
As of Rakudo 2015.05, the `unit` declarator is required before using
`module`, `class` or `grammar` declarations (unless it uses a block).  Code
still using the old blockless semicolon form will throw a warning. This
commit stops the warning from appearing in the new Rakudo.
  • Loading branch information
Paul Cochrane committed May 24, 2015
1 parent 855fc6b commit 0a1f2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/HTML/Template.pm
@@ -1,4 +1,4 @@
class HTML::Template;
unit class HTML::Template;

use Text::Escape;
use HTML::Template::Grammar;
Expand Down
2 changes: 1 addition & 1 deletion lib/Text/Escape.pm
@@ -1,5 +1,5 @@
use v6;
module Text::Escape;
unit module Text::Escape;

sub escape($str, $how) is export {
my $m = $how.lc;
Expand Down

0 comments on commit 0a1f2cb

Please sign in to comment.