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

Update information to be accurate to the semantics of string literals

InKryption 3 лет назад
Родитель
Сommit
b61186d6a5
1 измененных файлов с 1 добавлено и 1 удалено
  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!