diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-11-07 20:52:39 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-11-07 20:52:39 -0500 |
commit | d1e684126176214b65399034c96b6f52189b2b72 (patch) | |
tree | 5866b7f3a15945a73b946443fbd490fc8f4cc2d8 /exercises/077_sentinels2.zig | |
parent | 266449b1dd8e5e89887aa84c2d10270cdd6c7936 (diff) | |
parent | dedd787f2dd0badc03caa1299adaf57eaeaae156 (diff) | |
download | ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.gz ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.bz2 ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.xz ziglings-d1e684126176214b65399034c96b6f52189b2b72.zip |
Merge branch 'main' of github.com:ratfactor/ziglings into main
Diffstat (limited to 'exercises/077_sentinels2.zig')
-rw-r--r-- | exercises/077_sentinels2.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/077_sentinels2.zig b/exercises/077_sentinels2.zig index 7a03dcd..fb8f13d 100644 --- a/exercises/077_sentinels2.zig +++ b/exercises/077_sentinels2.zig @@ -22,7 +22,7 @@ // Versatility! Zig strings are compatible with C strings (which // are null-terminated) AND can be coerced to a variety of other // Zig types: -// +// // const a: [5]u8 = "array".*; // const b: *const [16]u8 = "pointer to array"; // const c: []const u8 = "slice"; @@ -50,7 +50,7 @@ pub fn main() void { // // Luckily, the 'length' field makes it possible to still // work with this value. - const foo = WeirdContainer { + const foo = WeirdContainer{ .data = "Weird Data!", .length = 11, }; |