Skip to content

Commit 4d815e4

Browse files
docs: Fix outdated space recommendation description (#3656)
1 parent 54d5396 commit 4d815e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/docs/references/space.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ In addition to the space for the account data, you have to add `8` to the
2525
| u128/i128 | 16 |
2626
| [T;amount] | space(T) \* amount | e.g. space([u16;32]) = 2 \* 32 = 64 |
2727
| 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 |
3030
| Option\<T> | 1 + (space(T)) |
3131
| Enum | 1 \+ Largest Variant Size | e.g. Enum \{ A, B \{ val: u8 \}, C \{ val: u16 \} \} \-\> 1 \+ space(u16) = 3 |
3232
| f32 | 4 | serialization will fail for NaN |

0 commit comments

Comments
 (0)