| ... | @@ -312,7 +312,7 @@ pub fn utf8ValidateSlice(input: []const u8) bool { | ... | @@ -312,7 +312,7 @@ pub fn utf8ValidateSlice(input: []const u8) bool { |
| 312 | /// ``` | 312 | /// ``` |
| 313 | /// var utf8 = (try std.unicode.Utf8View.init("hi there")).iterator(); | 313 | /// var utf8 = (try std.unicode.Utf8View.init("hi there")).iterator(); |
| 314 | /// while (utf8.nextCodepointSlice()) |codepoint| { | 314 | /// while (utf8.nextCodepointSlice()) |codepoint| { |
| 315 | /// std.debug.print("got codepoint {}\n", .{codepoint}); | 315 | /// std.debug.print("got codepoint {s}\n", .{codepoint}); |
| 316 | /// } | 316 | /// } |
| 317 | /// ``` | 317 | /// ``` |
| 318 | pub const Utf8View = struct { | 318 | pub const Utf8View = struct { |