diff options
| author | Juergen Hoetzel <[email protected]> | 2023-08-26 13:26:24 +0200 |
|---|---|---|
| committer | Jürgen Hötzel <[email protected]> | 2023-08-27 12:33:33 +0200 |
| commit | 8c2202c73d1d92a6f32ff0f7ea9f58818fe53c75 (patch) | |
| tree | c10d7fd176604e05ca01d3b9a42d7b2d588bc1cc /exercises | |
| parent | 741704cc6f7ad8f4c78460154b4ced3c64e0ddd0 (diff) | |
| download | ziglings-8c2202c73d1d92a6f32ff0f7ea9f58818fe53c75.tar.xz ziglings-8c2202c73d1d92a6f32ff0f7ea9f58818fe53c75.zip | |
Add example for Unicode Code point literal > 255
Only Basic Latin and Latin-1 Supplement code points fit into a single
byte.
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/059_integers.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exercises/059_integers.zig b/exercises/059_integers.zig index 4410079..39e077c 100644 --- a/exercises/059_integers.zig +++ b/exercises/059_integers.zig @@ -6,7 +6,8 @@ // const a2: u8 = 0x41; // hexadecimal // const a3: u8 = 0o101; // octal // const a4: u8 = 0b1000001; // binary -// const a5: u8 = 'A'; // UTF-8 code point literal +// const a5: u8 = 'A'; // ASCII code point literal +// const a6: u16 = 'Ȁ'; // Unicode code points can take up to 21 bits // // You can also place underscores in numbers to aid readability: // |
