Skip to content

Commit

Permalink
Git.pm: fix example in command_close_bidi_pipe documentation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Nazarewicz authored and Junio C Hamano committed Feb 7, 2013
1 parent 1bc760a commit 8a2cc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/Git.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8a2cc51

Please sign in to comment.