diff options
author | rofrol <rofrol@noreply.codeberg.org> | 2023-09-20 22:30:57 +0000 |
---|---|---|
committer | rofrol <rofrol@noreply.codeberg.org> | 2023-09-20 22:30:57 +0000 |
commit | 73f7670667a318626ccb9c12b5fb7264f73f5b6b (patch) | |
tree | e45bc1e3ff5d78d0279684dab8a67165c10d7733 | |
parent | f29a42b5f187fa338394f53b826ec131892014cf (diff) |
Global scope is container-level scope
https://ziglang.org/documentation/master/#Compile-Time-Expressions
-rw-r--r-- | exercises/074_comptime9.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/074_comptime9.zig b/exercises/074_comptime9.zig index 6db8ad2..4088aad 100644 --- a/exercises/074_comptime9.zig +++ b/exercises/074_comptime9.zig @@ -6,7 +6,7 @@ // compile time, and adding the 'comptime' keyword would be // superfluous, redundant, and smelly: // -// * The global scope (outside of any function in a source file) +// * The container-level scope (outside of any function in a source file) // * Type declarations of: // * Variables // * Functions (types of parameters and return values) @@ -28,7 +28,7 @@ // const print = @import("std").debug.print; -// Being in the global scope, everything about this value is +// Being in the container-level scope, everything about this value is // implicitly required to be known compile time. const llama_count = 5; |