From 736b4ccce2384c8f96e63d9c49ab4d6aee1d65a5 Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Thu, 15 May 2025 10:57:33 -0400 Subject: wordAtIndex passes conformance I removed the initAtIndex functions from the public vocabulary, because the last couple of days of sweat and blood prove that it's hard to use correctly. That's probably it for WordBreak, now to fix the overlong bug on v0.14 and get this integrated with the new reverse grapheme iterator. --- src/code_point.zig | 1 - 1 file changed, 1 deletion(-) (limited to 'src/code_point.zig') diff --git a/src/code_point.zig b/src/code_point.zig index 43b38d2..9a84080 100644 --- a/src/code_point.zig +++ b/src/code_point.zig @@ -272,7 +272,6 @@ pub const ReverseIterator = struct { while (i_prev > 0) : (i_prev -= 1) { if (!followbyte(iter.bytes[i_prev])) break; - if (i_prev == 0) break; } if (i_prev > 0) -- cgit v1.2.3