aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises/006_strings.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-17 17:05:16 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-17 17:05:16 -0400
commit18bf4c76b3e6484e7629f7f085f31d3981afa469 (patch)
treec5e33eb8a420753e234ba60ecf594d667b68984e /exercises/006_strings.zig
parentff2659410cda4a563118a2d30922bf5ef2c1701f (diff)
Added note about single vs double quotes
Diffstat (limited to 'exercises/006_strings.zig')
-rw-r--r--exercises/006_strings.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/exercises/006_strings.zig b/exercises/006_strings.zig
index 6258816..8ff98f5 100644
--- a/exercises/006_strings.zig
+++ b/exercises/006_strings.zig
@@ -11,6 +11,9 @@
//
// const foo = [_]u8{ 'H', 'e', 'l', 'l', 'o' };
//
+// Notice how individual characters use single quotes ('H') and
+// strings use double quotes ("H"). These are not interchangeable!
+//
const std = @import("std");
pub fn main() void {