fast-import: make comments more precise
The former is somewhat imprecise. The latter became out of sync with the behavior in e814c39c2f (fast-import: refactor parsing of spaces, 2014-06-18). Signed-off-by: Thalia Archibald <thalia@archibald.dev> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thalia Archibald committed
Apr 14, 2024 at 01:12 UTC
ab4ad1fa8af719443a8b53fa31fcf84392e21be6
1 file changed
+3
-3
builtin/fast-import.c
+3
-3
@@ -2210,7 +2210,7 @@ static int parse_mapped_oid_hex(const char *hex, struct object_id *oid, const ch
2210
*
2211
* idnum ::= ':' bigint;
2212
*
2213
- * Return the first character after the value in *endptr.
2213
+ * Update *endptr to point to the first character after the value.
2214
*
2215
* Complain if the following character is not what is expected,
2216
* either a space or end of the string.
@@ -2243,8 +2243,8 @@ static uintmax_t parse_mark_ref_eol(const char *p)
2243
}
2244
2245
/*
2246
- * Parse the mark reference, demanding a trailing space. Return a
2247
- * pointer to the space.
2246
+ * Parse the mark reference, demanding a trailing space. Update *p to
2247
+ * point to the first character after the space.
2248
*/
2249
static uintmax_t parse_mark_ref_space(const char **p)
2250
{