Skip to content

Commit fb947c0

Browse files
committed
Remove extra identation for a great number of code examples due to :skip-test option
1 parent 94ad744 commit fb947c0

File tree

87 files changed

+335
-336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+335
-336
lines changed

doc/Language/about.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ highlighting
4545
Then, to generate the documentation into the C<html/> folder, run:
4646
4747
=begin code :skip-test
48-
perl6 htmlify.p6
48+
perl6 htmlify.p6
4949
=end code
5050
5151
Currently, to serve the generated documentation for your browser, Perl 5
5252
with Mojolicious::Lite must be installed. Then run:
5353
5454
=begin code :skip-test
55-
perl app.pl daemon
55+
perl app.pl daemon
5656
=end code
5757
5858
=head1 Contributing
@@ -67,7 +67,7 @@ next directive of the same level, will be considered part of the
6767
documentable. So, in:
6868
6969
=begin code :allow<R> :skip-test
70-
=head2 R<My Definition>
70+
d2 R<My Definition>
7171
7272
Some paragraphs, followed by some code:
7373

doc/Type/Any.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Defined as:
2525
Usage:
2626
2727
=begin code :skip-test
28-
EXPR.ACCEPTS(EXPR);
28+
EXPR.ACCEPTS(EXPR);
2929
=end code
3030
3131
Returns C<True> if C<$other === self> (i.e. it checks object identity).
@@ -132,7 +132,7 @@ Examples:
132132
Defined as:
133133
134134
=begin code :skip-test
135-
proto method map(|) is nodal { * }
135+
proto method map(|) is nodal { * }
136136
=end code
137137
multi method map(\SELF: &block;; :$label, :$item)
138138
multi method map(HyperIterable:D: &block;; :$label)

doc/Type/Array.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ values that are stored in a single array.
7171
Defined as
7272
7373
=begin code :skip-test
74-
sub append(\array, elems)
74+
sub append(\array, elems)
7575
=end code
7676
multi method append(Array:D: \values)
7777
multi method append(Array:D: **@values is raw)
@@ -136,7 +136,7 @@ list or array.
136136
Defined as
137137
138138
=begin code :skip-test
139-
sub prepend(\array, elems)
139+
sub prepend(\array, elems)
140140
=end code
141141
multi method prepend(Array:D: \values)
142142
multi method prepend(Array:D: **@values is raw)

doc/Type/Blob.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ The following letters are recognized:
139139
This subroutine is considered B<experimental>, in order to use it you will need to do:
140140
141141
=begin code :skip-test
142-
use experimental :pack;
142+
use experimental :pack;
143143
sub pack(Str $template, *@items) returns Buf
144144
=end code
145145

doc/Type/Callable.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ container.
2020
sub foo() {};
2121
my &d = &foo;
2222
for code :skip-test
23-
my &f:(Int) = sub bar(Int) {}; # Not yet implemented
24-
my &f:(Str) = -> Str {}; # Not yet implemented
23+
my &f:(Int) = sub bar(Int) {}; # Not yet implemented
24+
my &f:(Str) = -> Str {}; # Not yet implemented
2525
2626
=head1 Methods
2727

doc/Type/Cancellation.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Defined as:
2323
Usage:
2424
2525
=begin code :skip-test
26-
CANCELLATION.cancel
26+
CANCELLATION.cancel
2727
=end code
2828
2929
Cancels the scheduled execution of a task before normal completion.

doc/Type/Capture.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
=SUBTITLE Argument list suitable for passing to a L<Signature>
66
77
=for code :skip-test
8-
class Capture does Positional does Associative { }
8+
class Capture does Positional does Associative { }
99
1010
A Capture is a container for passing arguments to a code object. Captures
1111
are the flip-side of Signatures -- Captures at the caller define arguments,

doc/Type/Complex.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Adding a trailing C<i> to a number literal makes it a Complex, for example:
2626
Defined as:
2727
2828
=begin code :skip-test
29-
proto method new(*@, *%) {*} returns Complex:D
29+
proto method new(*@, *%) {*} returns Complex:D
3030
=end code
3131
multi method new(Real $re, Real $im) returns Complex:D
3232

doc/Type/Cool.pod6

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,8 +1020,8 @@ This method can be used as part of an C<IO::Path> to process a file
10201020
line-by-line, since C<IO::Path> objects inherit from C<Cool>, e.g.:
10211021
10221022
=begin code :skip-test
1023-
for 'huge-csv'.IO.lines -> $line {
1024-
# Do something with $line
1023+
'huge-csv'.IO.lines -> $line {
1024+
# Do something with $line
10251025
}
10261026
10271027
# or if you'll be processing later
@@ -1034,7 +1034,7 @@ C<$*ARGFILES>, which defaults to C<$*IN> in the absence of any filenames.
10341034
To modify values in place use C<is copy> to force a writeable container.
10351035
10361036
=for code :skip-test
1037-
for $*IN.lines -> $_ is copy { s/(\w+)/{$0 ~ $0}/; .say }
1037+
for $*IN.lines -> $_ is copy { s/(\w+)/{$0 ~ $0}/; .say }
10381038
10391039
=head2 method words
10401040
@@ -1159,7 +1159,7 @@ Defined as:
11591159
Coerces the invocant to L<IO::Path>.
11601160
11611161
=for code :skip-test
1162-
.say for '.'.IO.dir; # gives a directory listing
1162+
.say for '.'.IO.dir; # gives a directory listing
11631163
11641164
=head2 routine EVAL
11651165
@@ -1189,7 +1189,7 @@ However, since the set of symbols in a lexical scope is immutable after compile
11891189
time, an EVAL can never introduce symbols into the surrounding scope.
11901190
11911191
=for code :skip-test
1192-
EVAL 'my $lives = 9'; say $lives; # error, $lives not declared
1192+
EVAL 'my $lives = 9'; say $lives; # error, $lives not declared
11931193
11941194
Furthermore, the C<EVAL> is evaluated in the current package:
11951195
@@ -1215,7 +1215,7 @@ An C<EVAL> statement evaluates to the result of the last statement:
12151215
C<EVAL> is also a gateway for executing code in other languages:
12161216
12171217
=for code :skip-test
1218-
EVAL "use v5.20; say 'Hello from perl5!'", :lang<Perl5>;
1218+
EVAL "use v5.20; say 'Hello from perl5!'", :lang<Perl5>;
12191219
12201220
=head2 routine EVALFILE
12211221
@@ -1226,7 +1226,7 @@ Defined as:
12261226
Usage:
12271227
12281228
=for code :skip-test
1229-
EVALFILE "foo.p6";
1229+
EVALFILE "foo.p6";
12301230
12311231
Slurps the specified file and evaluates it. Behaves the same way as C<EVAL>
12321232
with regard to both scoping and the C<$lang> parameter. Evaluates to the value

doc/Type/CurrentThreadScheduler.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
=SUBTITLE Scheduler that blockingly executes code on the current thread
66
77
=for code :skip-test
8-
class CurrentThreadScheduler does Scheduler {}
8+
class CurrentThreadScheduler does Scheduler {}
99
1010
C<CurrentThreadScheduler> executes tasks on the current threads. This means
1111
that L<method cue|/type/Scheduler#method cue> blocks until the code has

0 commit comments

Comments
 (0)