Skip to content

Commit f171ae0

Browse files
authored
Merge pull request #2224 from sarna/ruby-typos
Fixes some small typos in "Ruby to Perl 6"
2 parents 423c007 + da0cd0d commit f171ae0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Language/rb-nutshell.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ use lib '/some/module/lib';
10571057
In Ruby there is no built-in way to selectively import/export methods from a
10581058
module.
10591059
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
10611061
C<is export> role on the relevant subs and I<all> subs with this role are
10621062
then exported. Hence, the following module C<Bar> exports the subs C<foo>
10631063
and C<bar> but not C<baz>:
@@ -1071,14 +1071,14 @@ sub bar($b) is export { say "bar $b" }
10711071
sub baz($z) { say "baz $z" }
10721072
10731073
To use this module, simply C<use Bar> and the functions C<foo> and C<bar>
1074-
will be available
1074+
will be available:
10751075
10761076
=for code :skip-test
10771077
use Bar;
10781078
foo(1); #=> "foo 1"
10791079
bar(2); #=> "bar 2"
10801080
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.
10821082
10831083
Some modules allow for selectively importing functions, which would look like:
10841084

0 commit comments

Comments
 (0)