aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZetherz <32152358+zetherz@users.noreply.github.com>2017-09-28 20:21:02 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-28 20:21:02 +0800
commitc6c3163c2a2e3dbe30a9ee51773cc652de026c01 (patch)
tree0b4d463b9f1ab4876d1876d57e33a6f2d11a75cc
parent4d01d0865e343e9719242ce8401f15bfc9587843 (diff)
downloaddexon-solidity-c6c3163c2a2e3dbe30a9ee51773cc652de026c01.tar.gz
dexon-solidity-c6c3163c2a2e3dbe30a9ee51773cc652de026c01.tar.zst
dexon-solidity-c6c3163c2a2e3dbe30a9ee51773cc652de026c01.zip
Fixed code example (#2955)
-rw-r--r--docs/frequently-asked-questions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index 93dcfbb8..5c427c69 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -432,12 +432,12 @@ What happens to a ``struct``'s mapping when copying over a ``struct``?
This is a very interesting question. Suppose that we have a contract field set up like such::
struct user {
- mapping(string => address) usedContracts;
+ mapping(string => string) comments;
}
function somefunction {
user user1;
- user1.usedContracts["Hello"] = "World";
+ user1.comments["Hello"] = "World";
user user2 = user1;
}