mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-08-03 15:15:37 +00:00
Update information to be accurate to the semantics of string literals
This commit is contained in:
parent
6058819098
commit
b61186d6a5
|
@ -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!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user