From c6c3163c2a2e3dbe30a9ee51773cc652de026c01 Mon Sep 17 00:00:00 2001 From: Zetherz <32152358+zetherz@users.noreply.github.com> Date: Thu, 28 Sep 2017 07:21:02 -0500 Subject: Fixed code example (#2955) --- docs/frequently-asked-questions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/frequently-asked-questions.rst') 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; } -- cgit