From be1b3d529c931dbbdfe4888082c1f19998af59c2 Mon Sep 17 00:00:00 2001 From: sarna Date: Fri, 27 Jul 2018 15:48:10 +0200 Subject: [PATCH 1/2] typos --- doc/Language/rb-nutshell.pod6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Language/rb-nutshell.pod6 b/doc/Language/rb-nutshell.pod6 index 4fbf5bd69..424f6268c 100644 --- a/doc/Language/rb-nutshell.pod6 +++ b/doc/Language/rb-nutshell.pod6 @@ -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 role on the relevant subs and I subs with this role are then exported. Hence, the following module C exports the subs C and C but not C: @@ -1078,7 +1078,7 @@ use Bar; foo(1); #=> "foo 1" bar(2); #=> "bar 2" -If you tries to use C an "Undeclared routine" error is raised at compile time. +If you try to use C an "Undeclared routine" error is raised at compile time. Some modules allow for selectively importing functions, which would look like: From da0cd0dcc256fef8900a22d6a6aa3cfcf38c1374 Mon Sep 17 00:00:00 2001 From: sarna Date: Fri, 27 Jul 2018 15:50:42 +0200 Subject: [PATCH 2/2] added a colon --- doc/Language/rb-nutshell.pod6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Language/rb-nutshell.pod6 b/doc/Language/rb-nutshell.pod6 index 424f6268c..1fcfe1d8e 100644 --- a/doc/Language/rb-nutshell.pod6 +++ b/doc/Language/rb-nutshell.pod6 @@ -1071,7 +1071,7 @@ sub bar($b) is export { say "bar $b" } sub baz($z) { say "baz $z" } To use this module, simply C and the functions C and C -will be available +will be available: =for code :skip-test use Bar;