Skip to content

Commit 851cbb9

Browse files
committed
Fix up indentation
1 parent de48181 commit 851cbb9

File tree

1 file changed

+35
-34
lines changed

1 file changed

+35
-34
lines changed

doc/Language/modules.pod6

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ the importing statement.
4949
C<need> loads a C<compunit> at compile time.
5050
5151
=for code :skip-test
52-
need MyModule;
52+
need MyModule;
5353
5454
Any packages in the namespace defined within will also be available.
5555
56-
=for code :skip-test
57-
# MyModule.pm
58-
unit module MyModule;
56+
=begin code :skip-test
57+
# MyModule.pm
58+
unit module MyModule;
5959
60-
class MyModule::Class {}
60+
class MyModule::Class {}
61+
=end code
6162
6263
C<MyModule::Class> will be defined when C<MyModule> is loaded.
6364
@@ -70,14 +71,14 @@ files that end in C<.pm> or C<.pm6>. See L<here|#Finding_Modules> for where the
7071
runtime will look for modules.
7172
7273
=for code :skip-test
73-
use MyModule;
74+
use MyModule;
7475
7576
It is equivalent to:
7677
77-
=begin code :allow<L> :skip-test
78-
L<need|/language/modules#need> MyModule;
79-
import MyModule;
80-
=end code
78+
=begin code :allow<L> :skip-test
79+
L<need|/language/modules#need> MyModule;
80+
import MyModule;
81+
=end code
8182
8283
See also L<Selective Importing|/language/modules#Exporting_and_Selective_Importing> to restrict what you import.
8384
@@ -397,7 +398,7 @@ using the C<use lib> pragma one can use the C<PERL6LIB> environment variable to
397398
point to module locations. For example:
398399
399400
=for code :lang<shell>
400-
export PERL6LIB=/path/to/my-modules,/path/to/more/modules
401+
export PERL6LIB=/path/to/my-modules,/path/to/more/modules
401402
402403
Note that the comma (',') is used as the directory separator (instead
403404
of the colon (':') as with Perl 5 for C<PERL5LIB> or C<PERLLIB>).
@@ -432,30 +433,30 @@ To share your module, do the following:
432433
Make your project directory look like this:
433434
434435
=begin code :skip-test
435-
Vortex-TotalPerspective/
436-
|-- lib
437-
| `-- Vortex
438-
| `-- TotalPerspective.pm
439-
|-- doc
440-
| `-- Vortex
441-
| `-- TotalPerspective.pod6
442-
|-- LICENSE
443-
|-- META6.json
444-
|-- README.md
445-
`-- t
446-
`-- basic.t
436+
Vortex-TotalPerspective/
437+
|-- lib
438+
| `-- Vortex
439+
| `-- TotalPerspective.pm
440+
|-- doc
441+
| `-- Vortex
442+
| `-- TotalPerspective.pod6
443+
|-- LICENSE
444+
|-- META6.json
445+
|-- README.md
446+
`-- t
447+
`-- basic.t
447448
=end code
448449
449450
If your project contains other modules that help the main module do
450451
its job, they should go in your lib directory like so:
451452
452453
=begin code :skip-test
453-
lib
454-
`-- Vortex
455-
|-- TotalPerspective.pm
456-
`-- TotalPerspective
457-
|-- FairyCake.pm
458-
`-- Gargravarr.pm
454+
lib
455+
`-- Vortex
456+
|-- TotalPerspective.pm
457+
`-- TotalPerspective
458+
|-- FairyCake.pm
459+
`-- Gargravarr.pm
459460
=end code
460461
=end item
461462
@@ -584,7 +585,7 @@ If you'd like to try out installing your module, use the X<zef> module
584585
installer tool which is included with Rakudo Star Perl 6:
585586
586587
=for code :lang<shell>
587-
$ zef install Vortex::TotalPerspective
588+
$ zef install Vortex::TotalPerspective
588589
589590
This will download your module to its own working directory (C<~/.zef>),
590591
build it there, and install the module into your local Perl 6 installation directory.
@@ -607,10 +608,10 @@ infrastructure. B<Volunteers needed!>
607608
The rough plan is:
608609
609610
=for code :skip-test<should be numbered items>
610-
1. fix EVAL precomp bug (nine)
611-
2. get Repository API straight
612-
3. get zef up to speed
613-
4. continue with the metacpan fork for perl6 (jdv79)
611+
1. fix EVAL precomp bug (nine)
612+
2. get Repository API straight
613+
3. get zef up to speed
614+
4. continue with the metacpan fork for perl6 (jdv79)
614615
615616
The repository with jdv's fork can be found at L<https://github.com/jdv/metacpan-web>
616617

0 commit comments

Comments
 (0)