mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-10 17:09:59 +00:00
Update information to be accurate to the semantics of string literals
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
// Is the same as:
|
// 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
|
// Notice how individual characters use single quotes ('H') and
|
||||||
// strings use double quotes ("H"). These are not interchangeable!
|
// strings use double quotes ("H"). These are not interchangeable!
|
||||||
|
|||||||
Reference in New Issue
Block a user