From 7ff729895e72fc841440ec73a44c142779fcae1e Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Tue, 13 May 2025 16:33:02 -0400 Subject: Reverse Word Iterator Next up I hook it to the tests. --- src/code_point.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/code_point.zig') diff --git a/src/code_point.zig b/src/code_point.zig index 79ee5cd..a5b10d4 100644 --- a/src/code_point.zig +++ b/src/code_point.zig @@ -12,7 +12,7 @@ pub const CodePoint = struct { offset: u32, /// Return the slice of this codepoint, given the original string. - pub fn bytes(cp: CodePoint, str: []const u8) []const u8 { + pub inline fn bytes(cp: CodePoint, str: []const u8) []const u8 { return str[cp.offset..][0..cp.len]; } }; -- cgit v1.2.3