@@ -30,7 +30,7 @@ import "./EnumerableSet.sol";
30
30
*
31
31
* - `uint256 -> address` (`UintToAddressMap`) since v3.0.0
32
32
* - `address -> uint256` (`AddressToUintMap`) since v4.6.0
33
- * - `bytes32 -> bytes32` (`Bytes32ToBytes32 `) since v4.6.0
33
+ * - `bytes32 -> bytes32` (`Bytes32ToBytes32Map `) since v4.6.0
34
34
* - `uint256 -> uint256` (`UintToUintMap`) since v4.7.0
35
35
* - `bytes32 -> uint256` (`Bytes32ToUintMap`) since v4.7.0
36
36
*
@@ -116,7 +116,7 @@ library EnumerableMap {
116
116
}
117
117
118
118
/**
119
- * @dev Tries to returns the value associated with `key`. O(1).
119
+ * @dev Tries to returns the value associated with `key`. O(1).
120
120
* Does not revert if `key` is not in the map.
121
121
*/
122
122
function tryGet (Bytes32ToBytes32Map storage map , bytes32 key ) internal view returns (bool , bytes32 ) {
@@ -129,7 +129,7 @@ library EnumerableMap {
129
129
}
130
130
131
131
/**
132
- * @dev Returns the value associated with `key`. O(1).
132
+ * @dev Returns the value associated with `key`. O(1).
133
133
*
134
134
* Requirements:
135
135
*
@@ -216,7 +216,7 @@ library EnumerableMap {
216
216
}
217
217
218
218
/**
219
- * @dev Tries to returns the value associated with `key`. O(1).
219
+ * @dev Tries to returns the value associated with `key`. O(1).
220
220
* Does not revert if `key` is not in the map.
221
221
*/
222
222
function tryGet (UintToUintMap storage map , uint256 key ) internal view returns (bool , uint256 ) {
@@ -225,7 +225,7 @@ library EnumerableMap {
225
225
}
226
226
227
227
/**
228
- * @dev Returns the value associated with `key`. O(1).
228
+ * @dev Returns the value associated with `key`. O(1).
229
229
*
230
230
* Requirements:
231
231
*
@@ -308,18 +308,16 @@ library EnumerableMap {
308
308
}
309
309
310
310
/**
311
- * @dev Tries to returns the value associated with `key`. O(1).
311
+ * @dev Tries to returns the value associated with `key`. O(1).
312
312
* Does not revert if `key` is not in the map.
313
- *
314
- * _Available since v3.4._
315
313
*/
316
314
function tryGet (UintToAddressMap storage map , uint256 key ) internal view returns (bool , address ) {
317
315
(bool success , bytes32 value ) = tryGet (map._inner, bytes32 (key));
318
316
return (success, address (uint160 (uint256 (value))));
319
317
}
320
318
321
319
/**
322
- * @dev Returns the value associated with `key`. O(1).
320
+ * @dev Returns the value associated with `key`. O(1).
323
321
*
324
322
* Requirements:
325
323
*
@@ -402,7 +400,7 @@ library EnumerableMap {
402
400
}
403
401
404
402
/**
405
- * @dev Tries to returns the value associated with `key`. O(1).
403
+ * @dev Tries to returns the value associated with `key`. O(1).
406
404
* Does not revert if `key` is not in the map.
407
405
*/
408
406
function tryGet (AddressToUintMap storage map , address key ) internal view returns (bool , uint256 ) {
@@ -411,7 +409,7 @@ library EnumerableMap {
411
409
}
412
410
413
411
/**
414
- * @dev Returns the value associated with `key`. O(1).
412
+ * @dev Returns the value associated with `key`. O(1).
415
413
*
416
414
* Requirements:
417
415
*
@@ -494,7 +492,7 @@ library EnumerableMap {
494
492
}
495
493
496
494
/**
497
- * @dev Tries to returns the value associated with `key`. O(1).
495
+ * @dev Tries to returns the value associated with `key`. O(1).
498
496
* Does not revert if `key` is not in the map.
499
497
*/
500
498
function tryGet (Bytes32ToUintMap storage map , bytes32 key ) internal view returns (bool , uint256 ) {
@@ -503,7 +501,7 @@ library EnumerableMap {
503
501
}
504
502
505
503
/**
506
- * @dev Returns the value associated with `key`. O(1).
504
+ * @dev Returns the value associated with `key`. O(1).
507
505
*
508
506
* Requirements:
509
507
*
0 commit comments