16 lines
159 B
Markdown
16 lines
159 B
Markdown
|
# Primitive types.
|
||
|
|
||
|
# Boolean.
|
||
|
|
||
|
```rust
|
||
|
let foo: bool = true;
|
||
|
```
|
||
|
|
||
|
# Char.
|
||
|
|
||
|
Char is identified by using single quotes `'c'`.
|
||
|
|
||
|
```rust
|
||
|
let foo: char = 'c';
|
||
|
```
|