Merge pull request #356 from juergenhoetzel/code-point-size

Add example for Unicode Code point literal > 255

Thanks! 😄
pull/2/head
Chris Boesch 1 year ago committed by GitHub
commit acb0a9e0fe

@ -6,7 +6,8 @@
// const a2: u8 = 0x41; // hexadecimal // const a2: u8 = 0x41; // hexadecimal
// const a3: u8 = 0o101; // octal // const a3: u8 = 0o101; // octal
// const a4: u8 = 0b1000001; // binary // 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: // You can also place underscores in numbers to aid readability:
// //

@ -1,4 +1,4 @@
22,24c22,24 23,25c23,25
< 0o131, // octal < 0o131, // octal
< 0b1101000, // binary < 0b1101000, // binary
< 0x66, // hex < 0x66, // hex

Loading…
Cancel
Save