mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
explain back iterator
This commit is contained in:
parent
e21fa3cb0a
commit
188de22d8d
1 changed files with 2 additions and 1 deletions
|
@ -1619,7 +1619,8 @@ const ReverseUtf8View = struct {
|
|||
/// A backwards version of Utf8Iterator from std.unicode
|
||||
const ReverseUtf8Iterator = struct {
|
||||
bytes: []const u8,
|
||||
// NOTE i points to one forward from the current begin byte
|
||||
// NOTE i points to one after the current begin byte,
|
||||
// and 0 signifies 'done'
|
||||
i: usize,
|
||||
|
||||
pub fn nextCodepointSlice(it: *ReverseUtf8Iterator) ?[]const u8 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue