Open perillo opened 2 years ago
It's also documented in the paragraph above the example:
The code sample below uses the
std.testing.refAllDecls(@This())
function call to reference all of the containers that are in the file including the imported Zig source file. The code sample also shows an alternative way to reference containers using the_ = C;
syntax. This syntax tells the compiler to ignore the result of the expression on the right side of the assignment operator.
Related #4164.
The Go Language Specification documents the
_
identifier, called theblank
identifier: https://go.dev/ref/spec#Blank_identifier.However the Zig Language Reference only says:
inside an example.