Skip to content

Commit 58589c2

Browse files
peffgitster
authored andcommitted
git-compat-util: fix CONST_OUTPARAM typo and indentation
There's a typo in the comment, making it hard to understand. And the macro itself is indented with spaces rather than tab. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f1b8a4d commit 58589c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-compat-util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ report_fn get_warn_routine(void);
464464
void set_die_is_recursing_routine(int (*routine)(void));
465465

466466
/*
467-
* Check that an out-parameter that is "at least as const as" a matching
467+
* Check that an out-parameter is "at least as const as" a matching
468468
* in-parameter. For example, skip_prefix() will return "out" that is a subset
469469
* of "str". So:
470470
*
@@ -476,7 +476,7 @@ void set_die_is_recursing_routine(int (*routine)(void));
476476
* See the skip_prefix macro below for an example of use.
477477
*/
478478
#define CONST_OUTPARAM(in, out) \
479-
((const char **)(0 ? ((*(out) = (in)),(out)) : (out)))
479+
((const char **)(0 ? ((*(out) = (in)),(out)) : (out)))
480480

481481
/*
482482
* If the string "str" begins with the string found in "prefix", return true.

0 commit comments

Comments
 (0)