From 427ca3597d0d1084c024a8931447c51a666cdfd6 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 24 Jun 2024 04:11:26 -0700 Subject: [PATCH] indexOf returns the position of the start of the search --- intrusive_parser.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/intrusive_parser.zig b/intrusive_parser.zig index 04eda508b85266325cf5d86a47bedae7787a5a0c..8711f94f14221fd8309127f3bab6670b0f5d133d 100644 --- a/intrusive_parser.zig +++ b/intrusive_parser.zig @@ -126,6 +126,7 @@ pub const Parser = struct { continue; }; p.idx += amt; + p.idx += 1; const end = p.idx; return .{ start, end }; } -- 2.54.0