Re:Zig's Curious Multi-Sequence for Loops
by anonymoushn on Monday February 27, 2023 @10:25AM
(#34957443)
`std.debug.print` and similar fmt-like functions take 2 arguments. The first argument is a format string, and the second argument is a tuple. I think a tuple is an anonymous struct whose members are named 0, 1, 2, etc., but I'm not completely sure on this. If you just write "x", it won't work, since you needed to pass a tuple containing 1 thing, and x probably isn't a tuple containing 1 thing.
[ Parent
| on HN ]
There are no comments on this comment yet.