mirror of
https://github.com/ziglang/zig.git
synced 2024-11-21 19:42:56 +00:00
Updated Glossary (markdown)
parent
c5dbd34d4a
commit
238c9d91a9
@ -24,12 +24,12 @@ Think of containers as where you _declare_ things, which is order-independent, w
|
||||
opaque {
|
||||
const b = a+1;
|
||||
const a = 1;
|
||||
};
|
||||
}
|
||||
|
||||
// this is NOT a container
|
||||
// executions are sequential
|
||||
doStuff: {
|
||||
const b = a+1; // ERROR: a is undefined at this point
|
||||
do: {
|
||||
const b = a+1; // error: use of undeclared identifier 'a'
|
||||
const a = 1;
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user