From b437c318cd0e095ad353429721690401910b06b4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Oct 2021 01:07:56 -0700 Subject: [PATCH] regex: improve comment --- lib/regexec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/regexec.c b/lib/regexec.c index a955aa2182..106f9d7ff1 100644 --- a/lib/regexec.c +++ b/lib/regexec.c @@ -758,8 +758,7 @@ re_search_internal (const regex_t *preg, const char *string, Idx length, offset = match_first - mctx.input.raw_mbs_idx; } - /* If MATCH_FIRST is out of the buffer, leave it as '\0'. - Note that MATCH_FIRST must not be smaller than 0. */ + /* If OFFSET is out of the buffer, leave CH as '\0'. */ ch = (mctx.input.valid_len <= offset ? 0 : re_string_byte_at (&mctx.input, offset)); if (fastmap[ch]) -- 2.39.5