From b1d99587e08e60465aac30c749d9965018ff175f Mon Sep 17 00:00:00 2001 From: William Entriken Date: Sun, 14 Jan 2018 13:56:02 -0500 Subject: Use CapWords style for example Follows recommendation in https://github.com/ethereum/solidity/pull/3392 --- docs/frequently-asked-questions.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index 5343b848..7c934041 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -433,14 +433,14 @@ 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 { + struct User { mapping(string => string) comments; } function somefunction public { - user user1; + User user1; user1.comments["Hello"] = "World"; - user user2 = user1; + User user2 = user1; } In this case, the mapping of the struct being copied over into the userList is ignored as there is no "list of mapped keys". -- cgit