diff options
Diffstat (limited to 'src/code_point.zig')
| -rw-r--r-- | src/code_point.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
| 12 | offset: u32, | 12 | offset: u32, |
| 13 | 13 | ||
| 14 | /// Return the slice of this codepoint, given the original string. | 14 | /// Return the slice of this codepoint, given the original string. |
| 15 | pub fn bytes(cp: CodePoint, str: []const u8) []const u8 { | 15 | pub inline fn bytes(cp: CodePoint, str: []const u8) []const u8 { |
| 16 | return str[cp.offset..][0..cp.len]; | 16 | return str[cp.offset..][0..cp.len]; |
| 17 | } | 17 | } |
| 18 | }; | 18 | }; |