@@ -220,8 +220,9 @@ library EnumerableMap {
220220 /**
221221 * @dev Removes all the entries from a map. O(n).
222222 *
223- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
224- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
223+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
224+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
225+ * gas to fit in a block.
225226 */
226227 function clear (UintToUintMap storage map ) internal {
227228 clear (map._inner);
@@ -342,8 +343,9 @@ library EnumerableMap {
342343 /**
343344 * @dev Removes all the entries from a map. O(n).
344345 *
345- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
346- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
346+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
347+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
348+ * gas to fit in a block.
347349 */
348350 function clear (UintToAddressMap storage map ) internal {
349351 clear (map._inner);
@@ -464,8 +466,9 @@ library EnumerableMap {
464466 /**
465467 * @dev Removes all the entries from a map. O(n).
466468 *
467- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
468- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
469+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
470+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
471+ * gas to fit in a block.
469472 */
470473 function clear (UintToBytes32Map storage map ) internal {
471474 clear (map._inner);
@@ -586,8 +589,9 @@ library EnumerableMap {
586589 /**
587590 * @dev Removes all the entries from a map. O(n).
588591 *
589- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
590- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
592+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
593+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
594+ * gas to fit in a block.
591595 */
592596 function clear (AddressToUintMap storage map ) internal {
593597 clear (map._inner);
@@ -708,8 +712,9 @@ library EnumerableMap {
708712 /**
709713 * @dev Removes all the entries from a map. O(n).
710714 *
711- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
712- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
715+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
716+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
717+ * gas to fit in a block.
713718 */
714719 function clear (AddressToAddressMap storage map ) internal {
715720 clear (map._inner);
@@ -834,8 +839,9 @@ library EnumerableMap {
834839 /**
835840 * @dev Removes all the entries from a map. O(n).
836841 *
837- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
838- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
842+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
843+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
844+ * gas to fit in a block.
839845 */
840846 function clear (AddressToBytes32Map storage map ) internal {
841847 clear (map._inner);
@@ -960,8 +966,9 @@ library EnumerableMap {
960966 /**
961967 * @dev Removes all the entries from a map. O(n).
962968 *
963- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
964- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
969+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
970+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
971+ * gas to fit in a block.
965972 */
966973 function clear (Bytes32ToUintMap storage map ) internal {
967974 clear (map._inner);
@@ -1082,8 +1089,9 @@ library EnumerableMap {
10821089 /**
10831090 * @dev Removes all the entries from a map. O(n).
10841091 *
1085- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
1086- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
1092+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
1093+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
1094+ * gas to fit in a block.
10871095 */
10881096 function clear (Bytes32ToAddressMap storage map ) internal {
10891097 clear (map._inner);
0 commit comments