Add char type to the docs

This commit is contained in:
Gaith Hallak 2022-06-14 18:20:47 +04:00
parent 2d17ce3ee2
commit 8e6c6d81ad

View File

@ -357,7 +357,8 @@ Sophia has the following types:
| Type | Description | Example | | Type | Description | Example |
|----------------------|---------------------------------------------------------------------------------------------|--------------------------------------------------------------| |----------------------|---------------------------------------------------------------------------------------------|--------------------------------------------------------------|
| int | A 2-complement integer | ```-1``` | | int | A 2-complement integer | ```-1``` |
| address | æternity address, 32 bytes | ```Call.origin``` | | char | A single character | ```'c'``` |
| address | æternity address, 32 bytes | ```Call.origin``` |
| bool | A Boolean | ```true``` | | bool | A Boolean | ```true``` |
| bits | A bit field | ```Bits.none``` | | bits | A bit field | ```Bits.none``` |
| bytes(n) | A byte array with `n` bytes | ```#fedcba9876543210``` | | bytes(n) | A byte array with `n` bytes | ```#fedcba9876543210``` |