mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-08 11:20:46 -05:00
Improved 02 comment about imports being const
This commit is contained in:
parent
961cf22b88
commit
82a1abe09b
1 changed files with 5 additions and 5 deletions
|
@ -17,8 +17,8 @@ pub fn main() void {
|
|||
std.debug.print("Standard Library.\n", .{});
|
||||
}
|
||||
|
||||
// Going deeper: imports must be declared as "constants" (with the 'const'
|
||||
// keyword rather than "variables" (with the 'var' keyword) is that they
|
||||
// can only be used at "compile time" rather than "run time". Zig evaluates
|
||||
// const values at compile time. Don't worry if none of this makes sense
|
||||
// yet! See also this answer: https://stackoverflow.com/a/62567550/695615
|
||||
// For the curious: Imports must be declared as constants because they
|
||||
// can only be used at compile time rather than run time. Zig evaluates
|
||||
// constant values at compile time. Don't worry, we'll cover imports
|
||||
// in detail later.
|
||||
// See also this answer: https://stackoverflow.com/a/62567550/695615
|
||||
|
|
Loading…
Reference in a new issue