Skip to content

Commit

Permalink
fix markdown codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
samtupy committed May 25, 2024
1 parent 9f35d7b commit 17a7976
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/src/manual/-game development tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ void main(){
state = !state;
speak("Flipped, state is: " + state);
}
```
This shows how to declare a bool: it's fairly similar to other variables. Unlike strings, the values true or false do not need to be put in quotes, despite the fact that they are not variables in the traditional sense. These variables are actually consts, which means you can never accidentally overwrite their values; trying will yield an error.

That's all we'll learn about variables for now. We'll come back to them later on, but for our calculator project, this is all that we'll need to know.
Expand Down

0 comments on commit 17a7976

Please sign in to comment.