Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
typos
  • Loading branch information
sarna committed Jul 27, 2018
1 parent 423c007 commit be1b3d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/rb-nutshell.pod6
Expand Up @@ -1057,7 +1057,7 @@ use lib '/some/module/lib';
In Ruby there is no built-in way to selectively import/export methods from a
module.
In Perl 6 you specifies the functions which are to be exported by using the
In Perl 6 you specify the functions which are to be exported by using the
C<is export> role on the relevant subs and I<all> subs with this role are
then exported. Hence, the following module C<Bar> exports the subs C<foo>
and C<bar> but not C<baz>:
Expand All @@ -1078,7 +1078,7 @@ use Bar;
foo(1); #=> "foo 1"
bar(2); #=> "bar 2"
If you tries to use C<baz> an "Undeclared routine" error is raised at compile time.
If you try to use C<baz> an "Undeclared routine" error is raised at compile time.
Some modules allow for selectively importing functions, which would look like:
Expand Down

0 comments on commit be1b3d5

Please sign in to comment.