aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-12-22 22:46:07 +0800
committerGitHub <noreply@github.com>2016-12-22 22:46:07 +0800
commit8573b00eae068ebddeab6a942d6112ddfebcb948 (patch)
treeb3db4a9dd6a5a93f6b478e924bce66e38a1a338a
parentaf8bc1c9087dd6fcf8fd81bd8aef25431f176143 (diff)
parent5148de3ed714d99c93676174131cbcfd29c25753 (diff)
downloaddexon-solidity-8573b00eae068ebddeab6a942d6112ddfebcb948.tar.gz
dexon-solidity-8573b00eae068ebddeab6a942d6112ddfebcb948.tar.zst
dexon-solidity-8573b00eae068ebddeab6a942d6112ddfebcb948.zip
Merge pull request #1519 from federicobond/patch-1
Fix mapping syntax in docs
-rw-r--r--docs/types.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 069a9190..6b67e684 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -765,7 +765,7 @@ assigning it to a local variable, as in
Mappings
========
-Mapping types are declared as ``mapping _KeyType => _ValueType``.
+Mapping types are declared as ``mapping(_KeyType => _ValueType)``.
Here ``_KeyType`` can be almost any type except for a mapping, a dynamically sized array, a contract, an enum and a struct.
``_ValueType`` can actually be any type, including mappings.