Add "available since" comments in documentation

(cherry picked from commit 63a0343dda)
This commit is contained in:
Francisco Giordano
2021-02-01 21:44:58 -03:00
parent ff300b10e1
commit a0e2bca79a
10 changed files with 28 additions and 2 deletions

View File

@ -235,6 +235,8 @@ library EnumerableMap {
/**
* @dev Tries to returns the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*
* _Available since v3.4._
*/
function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
(bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));