diff options
author | chriseth <chris@ethereum.org> | 2018-11-22 07:36:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 07:36:34 +0800 |
commit | 3a15f8868351c0a524feb50f72ce80916d9d005e (patch) | |
tree | 63ddda72474f337c37e1c7fcf24c1109f1656415 /docs | |
parent | b5acc630089ba0e4c41cfb8548c82f157f9be6fc (diff) | |
parent | bddbdebd91234361982ccb8c50c7a7b46f6ac884 (diff) | |
download | dexon-solidity-3a15f8868351c0a524feb50f72ce80916d9d005e.tar dexon-solidity-3a15f8868351c0a524feb50f72ce80916d9d005e.tar.gz dexon-solidity-3a15f8868351c0a524feb50f72ce80916d9d005e.tar.bz2 dexon-solidity-3a15f8868351c0a524feb50f72ce80916d9d005e.tar.lz dexon-solidity-3a15f8868351c0a524feb50f72ce80916d9d005e.tar.xz dexon-solidity-3a15f8868351c0a524feb50f72ce80916d9d005e.tar.zst dexon-solidity-3a15f8868351c0a524feb50f72ce80916d9d005e.zip |
Merge pull request #5434 from fulldecent/patch-8
Qualify that storage slots are shared for contiguous data
Diffstat (limited to 'docs')
-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. |