File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1057,7 +1057,7 @@ use lib '/some/module/lib';
1057
1057
In Ruby there is no built-in way to selectively import/export methods from a
1058
1058
module.
1059
1059
1060
- In Perl 6 you specifies the functions which are to be exported by using the
1060
+ In Perl 6 you specify the functions which are to be exported by using the
1061
1061
C < is export > role on the relevant subs and I < all > subs with this role are
1062
1062
then exported. Hence, the following module C < Bar > exports the subs C < foo >
1063
1063
and C < bar > but not C < baz > :
@@ -1071,14 +1071,14 @@ sub bar($b) is export { say "bar $b" }
1071
1071
sub baz($z) { say "baz $z" }
1072
1072
1073
1073
To use this module, simply C < use Bar > and the functions C < foo > and C < bar >
1074
- will be available
1074
+ will be available:
1075
1075
1076
1076
= for code :skip-test
1077
1077
use Bar;
1078
1078
foo(1); #=> "foo 1"
1079
1079
bar(2); #=> "bar 2"
1080
1080
1081
- If you tries to use C < baz > an "Undeclared routine" error is raised at compile time.
1081
+ If you try to use C < baz > an "Undeclared routine" error is raised at compile time.
1082
1082
1083
1083
Some modules allow for selectively importing functions, which would look like:
1084
1084
You can’t perform that action at this time.
0 commit comments