Merge pull request #3393 from fulldecent/patch-5

Use CapWords style for example
This commit is contained in:
chriseth 2018-01-15 10:55:11 +01:00 committed by GitHub
commit 14fcbd659f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:: 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; mapping(string => string) comments;
} }
function somefunction public { function somefunction public {
user user1; User user1;
user1.comments["Hello"] = "World"; 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". In this case, the mapping of the struct being copied over into the userList is ignored as there is no "list of mapped keys".