Skip to content

Commit

Permalink
Merge pull request ratfactor#356 from juergenhoetzel/code-point-size
Browse files Browse the repository at this point in the history
Add example for Unicode Code point literal > 255

Thanks! 😄
  • Loading branch information
Chris Boesch authored Aug 27, 2023
2 parents 65a4c21 + 8c2202c commit acb0a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion exercises/059_integers.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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:
//
Expand Down
2 changes: 1 addition & 1 deletion patches/patches/059_integers.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
22,24c22,24
23,25c23,25
< 0o131, // octal
< 0b1101000, // binary
< 0x66, // hex
Expand Down

0 comments on commit acb0a9e

Please sign in to comment.