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>
Jeff King committed
Apr 4, 2026 at 01:42 UTC
58589c20e555de187c8026ac721467919595543f
1 file changed
+2
-2
git-compat-util.h
+2
-2
@@ -464,7 +464,7 @@ report_fn get_warn_routine(void);
464
void set_die_is_recursing_routine(int (*routine)(void));
465
466
/*
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
468
* in-parameter. For example, skip_prefix() will return "out" that is a subset
469
* of "str". So:
470
*
@@ -476,7 +476,7 @@ void set_die_is_recursing_routine(int (*routine)(void));
476
* See the skip_prefix macro below for an example of use.
477
*/
478
#define CONST_OUTPARAM(in, out) \
479
- ((const char **)(0 ? ((*(out) = (in)),(out)) : (out)))
479
+ ((const char **)(0 ? ((*(out) = (in)),(out)) : (out)))
480
481
/*
482
* If the string "str" begins with the string found in "prefix", return true.