wiki/dev/lang/rust/Primitive.md

16 lines
159 B
Markdown
Raw Normal View History

2023-11-18 09:54:14 +03:00
# Primitive types.
# Boolean.
```rust
let foo: bool = true;
```
# Char.
Char is identified by using single quotes `'c'`.
```rust
let foo: char = 'c';
```