Skip to content

Commit

Permalink
Mention bool
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Apr 7, 2024
1 parent 50c49a4 commit 7c114e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/content/docs/guide/basic-types-and-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ The following integer suffixes are available:

Note how `uint` also has the `u` suffix.

## Booleans

A `bool` will be either `true` or `false`. Although a bool is only a single bit of data,
it should be noted that it is stored in a byte.

```c
bool b = true;
bool f = false;
```

### Character literals

A character literal is a value enclosed in `'``'`. Its value is intepreted as being its
Expand Down

0 comments on commit 7c114e2

Please sign in to comment.