diff options
author | William Entriken <github.com@phor.net> | 2018-11-15 11:39:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 11:39:12 +0800 |
commit | bddbdebd91234361982ccb8c50c7a7b46f6ac884 (patch) | |
tree | b735e8e104662ad4d345dd4fc0c95d9e12fa2a38 /docs/miscellaneous.rst | |
parent | 92ebf6606764748229acf07e83dbe3824bde540e (diff) | |
download | dexon-solidity-bddbdebd91234361982ccb8c50c7a7b46f6ac884.tar.gz dexon-solidity-bddbdebd91234361982ccb8c50c7a7b46f6ac884.tar.zst dexon-solidity-bddbdebd91234361982ccb8c50c7a7b46f6ac884.zip |
Qualify that storage slots are shared for contiguous data
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r-- | docs/miscellaneous.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst index 21978ded..cc2ba801 100644 --- a/docs/miscellaneous.rst +++ b/docs/miscellaneous.rst @@ -8,7 +8,7 @@ Miscellaneous Layout of State Variables in Storage ************************************ -Statically-sized variables (everything except mapping and dynamically-sized array types) are laid out contiguously in storage starting from position ``0``. Multiple items that need less than 32 bytes are packed into a single storage slot if possible, according to the following rules: +Statically-sized variables (everything except mapping and dynamically-sized array types) are laid out contiguously in storage starting from position ``0``. Multiple, contiguous items that need less than 32 bytes are packed into a single storage slot if possible, according to the following rules: - The first item in a storage slot is stored lower-order aligned. - Elementary types use only that many bytes that are necessary to store them. |