summaryrefslogtreecommitdiff
path: root/perl/Git.pm
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2013-02-07 15:01:18 +0100
committerJunio C Hamano <gitster@pobox.com>2013-02-07 10:37:32 -0800
commit8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158 (patch)
treeb1df207619439a83a364795c90e730c54c1b8009 /perl/Git.pm
parent1bc760aeb784701a702c0a306d464834e96b1f3d (diff)
downloadgit-8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158.tar.gz
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>
Diffstat (limited to 'perl/Git.pm')
-rw-r--r--perl/Git.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git.pm b/perl/Git.pm
index bbb753a0ac..11f310af1d 100644
--- a/perl/Git.pm
+++ b/perl/Git.pm
@@ -418,7 +418,7 @@ and it is the fourth value returned by C<command_bidi_pipe()>. The call idiom
is:
my ($pid, $in, $out, $ctx) = $r->command_bidi_pipe('cat-file --batch-check');
- print "000000000\n" $out;
+ print $out "000000000\n";
while (<$in>) { ... }
$r->command_close_bidi_pipe($pid, $in, $out, $ctx);