Fix import in utf8ToAscii
example.
This commit is contained in:
parent
8855636817
commit
eac629f456
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ std.debug.print("{s}", .{ascii}); // Output: "F".
|
||||||
|
|
||||||
```zig
|
```zig
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const anyascii = @import("anyascii").utf8ToAscii;
|
const utf8ToAscii = @import("anyascii").utf8ToAscii;
|
||||||
|
|
||||||
// A full string of UTF-8 characters to ASCII characters.
|
// A full string of UTF-8 characters to ASCII characters.
|
||||||
const ascii = try utf8ToAscii(allocator, "Blöße");
|
const ascii = try utf8ToAscii(allocator, "Blöße");
|
||||||
|
|
Loading…
Reference in a new issue