[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] regex: improve comment
From: |
Paul Eggert |
Subject: |
[PATCH] regex: improve comment |
Date: |
Tue, 19 Oct 2021 01:08:19 -0700 |
---
lib/regexec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/regexec.c b/lib/regexec.c
index a955aa218..106f9d7ff 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.32.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] regex: improve comment,
Paul Eggert <=