Merge pull request #92 from InKryption/patch-1

Update information to be accurate to the semantics of string literals
This commit is contained in:
Dave Gauer 2022-02-22 18:50:19 -05:00 committed by GitHub
commit 3f922a3529

View file

@ -7,10 +7,12 @@
// //
// const foo = "Hello"; // const foo = "Hello";
// //
// Is the same as: // Is almost* the same as:
// //
// const foo = [_]u8{ 'H', 'e', 'l', 'l', 'o' }; // const foo = [_]u8{ 'H', 'e', 'l', 'l', 'o' };
// //
// (* We'll see what Zig strings REALLY are in Exercise 77.)
//
// Notice how individual characters use single quotes ('H') and // Notice how individual characters use single quotes ('H') and
// strings use double quotes ("H"). These are not interchangeable! // strings use double quotes ("H"). These are not interchangeable!
// //