Skip to content

Commit 6153feb

Browse files
author
Jan-Olof Hendig
committed
Fixed some code example indentation problems
1 parent 71be272 commit 6153feb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/Language/io.pod6

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ for 'huge-csv'.IO.lines -> $line {
4444
# Do something with $line
4545
}
4646
47-
# or if you'll be processing later
48-
my @lines = 'huge-csv'.IO.lines;
47+
# or if you'll be processing later
48+
my @lines = 'huge-csv'.IO.lines;
4949
5050
=head1 Writing to files
5151
@@ -126,10 +126,10 @@ if "path/to/file".IO ~~ :e {
126126
say 'file exists';
127127
}
128128
129-
my $file = "path/to/file";
130-
if $file.IO ~~ :e {
131-
say 'file exists';
132-
}
129+
my $file = "path/to/file";
130+
if $file.IO ~~ :e {
131+
say 'file exists';
132+
}
133133
134134
Similarly to the file existence check, one can also check to see if a path
135135
is a directory. For instance, assuming that the file C<testfile> and the
@@ -172,18 +172,18 @@ To create a new directory, simply call the C<mkdir> function with the
172172
directory name as its argument:
173173
174174
=for code :skip-test
175-
mkdir "newdir";
175+
mkdir "newdir";
176176
177177
The function returns the name of the created directory on success and C<Nil>
178178
on failure. Thus the standard Perl idiom works as expected:
179179
180180
=for code :skip-test
181-
mkdir "newdir" or die "$!";
181+
mkdir "newdir" or die "$!";
182182
183183
Use C<rmdir> to remove I<empty> directories:
184184
185185
=for code :skip-test
186-
rmdir "newdir" or die "$!";
186+
rmdir "newdir" or die "$!";
187187
188188
=end pod
189189

0 commit comments

Comments
 (0)