Review manual for loops in core:text/regex

This commit is contained in:
Feoramund
2024-08-05 03:49:29 -04:00
parent 14858309f0
commit 8f5b838a07
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ match_and_allocate_capture :: proc(
context.allocator = permanent_allocator
num_groups := 0
for i := 0; i < len(saved); i += 2 {
#no_bounds_check for i := 0; i < len(saved); i += 2 {
a, b := saved[i], saved[i + 1]
if a == -1 || b == -1 {
continue