Skip to content

Commit

Permalink
fix for zig master
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Sep 23, 2024
1 parent 26822f5 commit b1a66ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
.dependencies = .{
.zigcli = .{
.url = "https://github.com/jiacai2050/zigcli/archive/c5e98846758f78083ca3648b841ef67f472ae9b4.tar.gz",
.hash = "12200ac6f2432658825c5b3e5ef004a62821ed6e910bbc3a971b98516de9d1783d90",
.url = "https://github.com/jiacai2050/zigcli/archive/d48eba82af25c16f01faf759fb9c11aacfe58a99.tar.gz",
.hash = "1220e18590afc407a9e947f7c724a4be509adbbab916a5253efc0bb07457de955bf1",
},
},
}
4 changes: 0 additions & 4 deletions src/12-03.zig
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ fn DoublyLinkedList(comptime T: type) type {
return false;
}

fn len(self: *Self) usize {
return self.len;
}

fn search(self: *Self, value: T) bool {
var current: ?*Node = self.head;

Expand Down
4 changes: 2 additions & 2 deletions src/13-01.zig
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ pub fn main() !void {
}

print("\n{s}Positionals{s}\n", .{ sep, sep });
for (opt.positional_args.items, 0..) |arg, idx| {
for (opt.positional_args, 0..) |arg, idx| {
print("{d}: {s}\n", .{ idx + 1, arg });
}

// Provide a print_help util method
print("\n{s}print_help{s}\n", .{ sep, sep });
const stdout = std.io.getStdOut();
try opt.print_help(stdout.writer());
try opt.printHelp(stdout.writer());
}

0 comments on commit b1a66ec

Please sign in to comment.