Skip to content

Commit

Permalink
Add unit declarator to module declarations
Browse files Browse the repository at this point in the history
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
paultcochrane committed May 27, 2015
1 parent a1a014b commit a3c039c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Netstring.pm6
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use v6;

module Netstring;
unit module Netstring;

proto to-netstring ($) is export {*}
proto to-netstring-buf ($) is export {*}
Expand Down

0 comments on commit a3c039c

Please sign in to comment.