Skip to content

Commit 8a2cc51

Browse files
mina86gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1bc760a commit 8a2cc51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perl/Git.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ and it is the fourth value returned by C<command_bidi_pipe()>. The call idiom
418418
is:
419419
420420
my ($pid, $in, $out, $ctx) = $r->command_bidi_pipe('cat-file --batch-check');
421-
print "000000000\n" $out;
421+
print $out "000000000\n";
422422
while (<$in>) { ... }
423423
$r->command_close_bidi_pipe($pid, $in, $out, $ctx);
424424

0 commit comments

Comments
 (0)