diff options
Diffstat (limited to 'src/code_point.zig')
| -rw-r--r-- | src/code_point.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code_point.zig b/src/code_point.zig index 5f6c61c..2332c8b 100644 --- a/src/code_point.zig +++ b/src/code_point.zig | |||
| @@ -31,7 +31,7 @@ pub const CodePoint = struct { | |||
| 31 | /// Use `decodeAtIndex` or `decodeAtCursor`. | 31 | /// Use `decodeAtIndex` or `decodeAtCursor`. |
| 32 | pub fn decode(bytes: []const u8, offset: uoffset) ?CodePoint { | 32 | pub fn decode(bytes: []const u8, offset: uoffset) ?CodePoint { |
| 33 | _ = .{ bytes, offset }; | 33 | _ = .{ bytes, offset }; |
| 34 | @compileError("decode has been removed, use `decodeAtIndex`."); | 34 | @compileError("decode has been removed, use `decodeAtIndex` or `decodeAtCursor`."); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | /// Return the codepoint at `index`, even if `index` is in the middle | 37 | /// Return the codepoint at `index`, even if `index` is in the middle |
| @@ -211,8 +211,8 @@ pub const Iterator = struct { | |||
| 211 | // speed increase in exchange. | 211 | // speed increase in exchange. |
| 212 | // | 212 | // |
| 213 | // Credit for the algorithm goes to Björn Höhrmann, who wrote it up at | 213 | // Credit for the algorithm goes to Björn Höhrmann, who wrote it up at |
| 214 | // https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ . The original | 214 | // https://bjoern.hoehrmann.de/utf-8/decoder/dfa/. The license to the |
| 215 | // license may be found in the ./credits folder. | 215 | // original code may be found in the ./credits folder. |
| 216 | // | 216 | // |
| 217 | 217 | ||
| 218 | /// Successful codepoint parse | 218 | /// Successful codepoint parse |