diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-11-07 19:38:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-07 19:38:47 -0500 |
commit | dedd787f2dd0badc03caa1299adaf57eaeaae156 (patch) | |
tree | b89a125af4973d0a7b40121298c8f4fd8e8c9988 /exercises/077_sentinels2.zig | |
parent | 4147a9a39b362468cc6f16c8ce751ee3481321f4 (diff) | |
parent | f6de68a1f23722457a0432ce520da668a50b2132 (diff) | |
download | ziglings-dedd787f2dd0badc03caa1299adaf57eaeaae156.tar.gz ziglings-dedd787f2dd0badc03caa1299adaf57eaeaae156.tar.bz2 ziglings-dedd787f2dd0badc03caa1299adaf57eaeaae156.tar.xz ziglings-dedd787f2dd0badc03caa1299adaf57eaeaae156.zip |
Merge pull request #77 from jhalmen/fmt
whitespaces and zig fmt
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, }; |