Skip to content

Commit 7e38a18

Browse files
committed
story-structs > staging: minor
1 parent 3b92f3e commit 7e38a18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ pub fn main() !void {
1313
const allocator = std.heap.page_allocator;
1414
var args = try std.process.ArgIterator.initWithAllocator(allocator);
1515
defer args.deinit();
16+
17+
// ignore first argument
1618
_ = args.next();
19+
20+
// get second argument
1721
if (args.next()) |name| {
1822
const user = users.User{ .name = name };
1923
user.greet();

0 commit comments

Comments
 (0)