Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
No need for two calls to .print
  • Loading branch information
lizmat committed Jun 16, 2014
1 parent 09134a7 commit aaa82dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/IO.pm
Expand Up @@ -10,8 +10,7 @@ sub print(|) {
proto sub say(|) { * }
multi sub say(\x) {
my $out := $*OUT;
$out.print(x.gist);
$out.print("\n");
$out.print(x.gist, "\n");
}
multi sub say(|) {
my $args := nqp::p6argvmarray();
Expand All @@ -23,8 +22,7 @@ multi sub say(|) {
proto sub note(|) { * }
multi sub note(\x) {
my $err := $*ERR;
$err.print(x.gist);
$err.print("\n");
$err.print(x.gist, "\n");
}
multi sub note(|) {
my $args := nqp::p6argvmarray();
Expand Down

0 comments on commit aaa82dd

Please sign in to comment.