aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorDavid Sanders <davesque@gmail.com>2018-04-25 08:17:44 +0800
committerDavid Sanders <davesque@gmail.com>2018-04-25 08:17:44 +0800
commitd72624ecb9d37bc60a170c48cc6a9cf9a0060184 (patch)
tree5c8b6eb1468c5d486c6363e1de35d7dd8fae4c41 /docs/abi-spec.rst
parent287ec8addbe240aeef933a9b921c5c001c830c6a (diff)
downloaddexon-solidity-d72624ecb9d37bc60a170c48cc6a9cf9a0060184.tar
dexon-solidity-d72624ecb9d37bc60a170c48cc6a9cf9a0060184.tar.gz
dexon-solidity-d72624ecb9d37bc60a170c48cc6a9cf9a0060184.tar.bz2
dexon-solidity-d72624ecb9d37bc60a170c48cc6a9cf9a0060184.tar.lz
dexon-solidity-d72624ecb9d37bc60a170c48cc6a9cf9a0060184.tar.xz
dexon-solidity-d72624ecb9d37bc60a170c48cc6a9cf9a0060184.tar.zst
dexon-solidity-d72624ecb9d37bc60a170c48cc6a9cf9a0060184.zip
Make index notation more consistent
Diffstat (limited to 'docs/abi-spec.rst')
-rw-r--r--docs/abi-spec.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index b39bfda8..b0b16e28 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -117,7 +117,7 @@ on the type of ``X`` being
- ``(T1,...,Tk)`` for ``k >= 0`` and any types ``T1``, ..., ``Tk``
- ``enc(X) = head(X(1)) ... head(X(k-1)) tail(X(0)) ... tail(X(k-1))``
+ ``enc(X) = head(X(1)) ... head(X(k)) tail(X(1)) ... tail(X(k))``
where ``X(i)`` is the ``ith`` component of the value, and
``head`` and ``tail`` are defined for ``Ti`` being a static type as
@@ -126,7 +126,7 @@ on the type of ``X`` being
and as
- ``head(X(i)) = enc(len(head(X(0)) ... head(X(k-1)) tail(X(0)) ... tail(X(i-1))))``
+ ``head(X(i)) = enc(len( head(X(1)) ... head(X(k)) tail(X(1)) ... tail(X(i-1)) ))``
``tail(X(i)) = enc(X(i))``
otherwise, i.e. if ``Ti`` is a dynamic type.
@@ -137,7 +137,7 @@ on the type of ``X`` being
- ``T[k]`` for any ``T`` and ``k``:
- ``enc(X) = enc((X[0], ..., X[k-1]))``
+ ``enc(X) = enc((X[1], ..., X[k]))``
i.e. it is encoded as if it were a tuple with ``k`` elements
of the same type.