Skip to content

Commit 51fab43

Browse files
authored
Merge pull request #3375 from ayo-69/patch-1
Fix syntax error in mapping assignment
2 parents a1f6d63 + b5eeddd commit 51fab43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/academy/blockchain/solidity-foundry/05-hello-world-part-2/03-data-structures.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Below shows an example of how to define a key-value pair within a mapping:
2424
```solidity
2525
mapping(address => uint) map;
2626
27-
map[0xc0ffee254729296a45a3885639AC7E10F9d54979 = 5;
27+
map[0xc0ffee254729296a45a3885639AC7E10F9d54979] = 5;
2828
```
2929
## Nested Mappings
3030

@@ -121,4 +121,4 @@ function test() public {
121121
arr.push(1);
122122
arr.pop();
123123
}
124-
```
124+
```

0 commit comments

Comments
 (0)