Skip to content

Commit 8f53830

Browse files
committed
[io grant] Fix up IO::Handle.print-nl
- The handle can be not for a file - Remove all the prose about .nl-out's defaults and .opens. That's not the only way to set that attribute.
1 parent a6f1cbf commit 8f53830

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/Type/IO/Handle.pod6

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,14 +309,12 @@ Defined as:
309309
310310
method print-nl(IO::Handle:D: --> True)
311311
312-
Writes a newline to the filehandle. The newline marker, which is stored
313-
in the attribute C<$.nl-out>, defaults to C<\n> unless another marker has
314-
been specified in the call to L<open>.
312+
Writes the value of C<$.nl-out> attribute into the handle.
315313
316314
=for code :skip-test
317315
my $fh = open 'path/to/file', :w, nl-out => "\r\n";
318316
$fh.print("some text");
319-
$fh.print-nl; # \r\n
317+
$fh.print-nl; # prints \r\n
320318
$fh.close;
321319
322320
=head2 method printf

0 commit comments

Comments
 (0)