Просмотр исходного кода

Merge pull request #92 from InKryption/patch-1

Update information to be accurate to the semantics of string literals
Dave Gauer 3 лет назад
Родитель
Сommit
3f922a3529
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      exercises/006_strings.zig

+ 3 - 1
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!
 //