diff options
author | Dave Gauer <ratfactor@gmail.com> | 2022-02-22 18:50:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 18:50:19 -0500 |
commit | c22544ece7dcf5cbfe0110c4919c83dd4cb0f85c (patch) | |
tree | 2fd1767d721a1c462d53829e8b8bb26e4ad61f90 /exercises/006_strings.zig | |
parent | fa2657ad2eff0750c5aea32ff92a5f4b61f78c1a (diff) | |
parent | ec356407f14cf75163bb263e1e4a8ec20fb6ea56 (diff) | |
download | ziglings-c22544ece7dcf5cbfe0110c4919c83dd4cb0f85c.tar.gz ziglings-c22544ece7dcf5cbfe0110c4919c83dd4cb0f85c.tar.bz2 ziglings-c22544ece7dcf5cbfe0110c4919c83dd4cb0f85c.tar.xz ziglings-c22544ece7dcf5cbfe0110c4919c83dd4cb0f85c.zip |
Merge pull request #92 from InKryption/patch-1
Update information to be accurate to the semantics of string literals
Diffstat (limited to 'exercises/006_strings.zig')
-rw-r--r-- | exercises/006_strings.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/exercises/006_strings.zig b/exercises/006_strings.zig index 8ff98f5..5a7172c 100644 --- a/exercises/006_strings.zig +++ b/exercises/006_strings.zig @@ -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! // |