mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Merge pull request #92 from InKryption/patch-1
Update information to be accurate to the semantics of string literals
This commit is contained in:
commit
3f922a3529
1 changed files with 3 additions and 1 deletions
|
@ -7,10 +7,12 @@
|
|||
//
|
||||
// const foo = "Hello";
|
||||
//
|
||||
// Is the same as:
|
||||
// Is almost* the same as:
|
||||
//
|
||||
// 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
|
||||
// strings use double quotes ("H"). These are not interchangeable!
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue