Skip to content

Commit 459c66e

Browse files
committed
Merge pull request #180 from ungrim97/master
Make clear that is export should appear after function args list
2 parents 542b373 + 19b81e8 commit 459c66e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/Language/modules.pod

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ them with the L<is export> trait.
8383
class MyModule::MyClass {};
8484
=end code
8585
86+
As with all traits, if applied to a routine, "is export" should appear after
87+
any argument list.
88+
89+
=begin code
90+
sub foo (Str $string) is export { ... }
91+
=end code
92+
8693
You can pass named parameters to C<is export> to group symbols for exporting
8794
then the importer can pick and choose. There are three predefined
8895
tags: C<ALL>, C<DEFAULT> and C<MANDATORY>.

0 commit comments

Comments
 (0)