Browse Source

Update information to be accurate to the semantics of string literals

InKryption 3 years ago
parent
commit
b61186d6a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exercises/006_strings.zig

+ 1 - 1
exercises/006_strings.zig

@@ -9,7 +9,7 @@
 //
 // Is the same as:
 //
-//     const foo = [_]u8{ 'H', 'e', 'l', 'l', 'o' };
+//     const foo = &[_:0]u8{ 'H', 'e', 'l', 'l', 'o' };
 //
 // Notice how individual characters use single quotes ('H') and
 // strings use double quotes ("H"). These are not interchangeable!