File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/content/docs/references Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ In addition to the space for the account data, you have to add `8` to the
25
25
| u128/i128 | 16 |
26
26
| [ T;amount] | space(T) \* amount | e.g. space([ u16;32] ) = 2 \* 32 = 64 |
27
27
| Pubkey | 32 |
28
- | Vec\< T> | 4 + (space(T) \* amount) | Account size is fixed so account should be initialized with sufficient space from the beginning |
29
- | String | 4 + length of string in bytes | Account size is fixed so account should be initialized with sufficient space from the beginning |
28
+ | Vec\< T> | 4 + (space(T) \* amount) |
29
+ | String | 4 + length of string in bytes |
30
30
| Option\< T> | 1 + (space(T)) |
31
31
| Enum | 1 \+ Largest Variant Size | e.g. Enum \{ A, B \{ val: u8 \} , C \{ val: u16 \} \} \-\> 1 \+ space(u16) = 3 |
32
32
| f32 | 4 | serialization will fail for NaN |
You can’t perform that action at this time.
0 commit comments