Fix `Option<T>` rendering (#57)

This commit is contained in:
Kirill Fomichev 2022-04-13 21:33:46 +03:00 committed by GitHub
parent 6cee0f4e54
commit 346c91ba89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ In addition to the space for the account data, you have to add `8` to the `space
| Pubkey | 32 |
| Vec\<T> | 4 + (space(T) * amount) | Account size is fixed so account should be initialized with sufficient space from the beginning
| String | 4 + length of string in bytes | Account size is fixed so account should be initialized with sufficient space from the beginning
| Option<T> | 1 + (space(T)) |
| Option\<T> | 1 + (space(T)) |
| Enum | 1 + Largest Variant Size | e.g. Enum { A, B { val: u8 }, C { val: u16 } } -> 1 + space(u16) = 3
| f32 | 4 | serialization will fail for NaN
| f64 | 8 | serialization will fail for NaN