diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-02-10 09:27:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 09:27:43 -0500 |
commit | 6a7153eafba8b5afd2807a20dd25952d703a12fe (patch) | |
tree | 62ac3c0c041c4fa543efa82fa7c31c4ec06e5a92 /exercises | |
parent | 961cf22b88021e9c62d83bd840fe54f205c45f5f (diff) | |
download | ziglings-6a7153eafba8b5afd2807a20dd25952d703a12fe.tar.gz ziglings-6a7153eafba8b5afd2807a20dd25952d703a12fe.tar.bz2 ziglings-6a7153eafba8b5afd2807a20dd25952d703a12fe.tar.xz ziglings-6a7153eafba8b5afd2807a20dd25952d703a12fe.zip |
Improved 02 comment about imports being const
Diffstat (limited to 'exercises')
-rw-r--r-- | exercises/02_std.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/exercises/02_std.zig b/exercises/02_std.zig index dcc1b87..50059e1 100644 --- a/exercises/02_std.zig +++ b/exercises/02_std.zig @@ -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 |