Git.pm: fix example in command_close_bidi_pipe documentation
File handle goes as the first argument when calling print on it. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michal Nazarewicz committed
Feb 7, 2013 at 15:01 UTC
8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158
1 file changed
+1
-1
perl/Git.pm
+1
-1
@@ -418,7 +418,7 @@ and it is the fourth value returned by C<command_bidi_pipe()>. The call idiom
418
is:
419
420
my ($pid, $in, $out, $ctx) = $r->command_bidi_pipe('cat-file --batch-check');
421
- print "000000000\n" $out;
421
+ print $out "000000000\n";
422
while (<$in>) { ... }
423
$r->command_close_bidi_pipe($pid, $in, $out, $ctx);
424