mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
ex 058 grammaring harder
This commit is contained in:
parent
4ffea758a7
commit
8923b3f4a9
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ pub fn main() void {
|
||||||
//
|
//
|
||||||
// A "string" in Zig is a pointer to an array of const u8 values
|
// A "string" in Zig is a pointer to an array of const u8 values
|
||||||
// (or a slice of const u8 values, as we saw above). So, we could
|
// (or a slice of const u8 values, as we saw above). So, we could
|
||||||
// treat a "many-item pointer" of const u8 a string as long as we
|
// treat a "many-item pointer" of const u8 as a string as long as
|
||||||
// can CONVERT IT TO A SLICE. (Hint: we do know the length!)
|
// we can CONVERT IT TO A SLICE. (Hint: we do know the length!)
|
||||||
//
|
//
|
||||||
// Please fix this line so the print below statement can print it:
|
// Please fix this line so the print below statement can print it:
|
||||||
const zen12_string: []const u8 = zen_manyptr;
|
const zen12_string: []const u8 = zen_manyptr;
|
||||||
|
|
Loading…
Reference in a new issue