Skip to content

Commit

Permalink
Update variables.md
Browse files Browse the repository at this point in the history
Fixed a small typo in the example comment.
  • Loading branch information
tristanisham authored and lerno committed Jul 29, 2024
1 parent 4f94665 commit e91e1e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/references/docs/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ int x; // x = 0
int y @noinit; // y is explicitly undefined and must be assigned before use.
AStruct foo; // foo is implicitly zeroed
AStruct bar = {}; // boo is explicitly zeroed
AStruct bar = {}; // bar is explicitly zeroed
AStruct baz @noinit; // baz is explicitly undefined
```

Using a variable that is explicitly undefined before will trap or be initialized to a
specific value when compiling "safe" and is undefined behaviour in "fast" builds.
specific value when compiling "safe" and is undefined behaviour in "fast" builds.

0 comments on commit e91e1e9

Please sign in to comment.