Skip to content

Commit a34c050

Browse files
committed
Indent IO.lines examples consistently
1 parent 12b62f0 commit a34c050

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

lib/Language/io.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ the file for you.
3636
3737
Of course, we also have the option to read a file line-by-line.
3838
39-
for 'huge-csv'.IO.lines -> $line {
40-
# Do something with $line
41-
}
42-
# or if you'll be processing later
43-
my @lines = 'huge-csv'.IO.lines;
39+
for 'huge-csv'.IO.lines -> $line {
40+
# Do something with $line
41+
}
4442
43+
# or if you'll be processing later
44+
my @lines = 'huge-csv'.IO.lines;
4545
4646
=head1 Writing to files
4747

lib/Type/Cool.pod

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -705,11 +705,14 @@ the list of lines.
705705
This method can be used as part of an C<IO::Path> to process a file
706706
line-by-line, since C<IO::Path> objects inherit from C<Cool>, e.g.:
707707
708-
for 'huge-csv'.IO.lines -> $line {
709-
# Do something with $line
710-
}
711-
# or if you'll be processing later
712-
my @lines = 'huge-csv'.IO.lines;
708+
=begin code
709+
for 'huge-csv'.IO.lines -> $line {
710+
# Do something with $line
711+
}
712+
713+
# or if you'll be processing later
714+
my @lines = 'huge-csv'.IO.lines;
715+
=end code
713716
714717
=head2 method words
715718

0 commit comments

Comments
 (0)