We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af97c81 commit 9d2ca8dCopy full SHA for 9d2ca8d
07_Mapping/Mapping.sol
@@ -4,7 +4,8 @@ contract Mapping {
4
mapping(uint => address) public idToAddress; // id映射到地址
5
mapping(address => address) public swapPair; // 币对的映射,地址到地址
6
7
- // 规则1. _KeyType不能是自定义的 下面这个例子会报错
+ // 规则1. _KeyType 不能是自定义的, 下面这个例子会报错
8
+ // _KeyType 可以是 内置值类型,string, bytes, 合约,枚举类型
9
// 我们定义一个结构体 Struct
10
// struct Student{
11
// uint256 id;
0 commit comments