diff --git a/contracts/utils/Arrays.sol b/contracts/utils/Arrays.sol index e49be484d80..cd01b21c561 100644 --- a/contracts/utils/Arrays.sol +++ b/contracts/utils/Arrays.sol @@ -681,7 +681,7 @@ library Arrays { /** * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden. * - * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased. + * WARNING: this does not clear elements if length is reduced, or initialize elements if length is increased. */ function unsafeSetLength(address[] storage array, uint256 len) internal { assembly ("memory-safe") { @@ -692,7 +692,7 @@ library Arrays { /** * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden. * - * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased. + * WARNING: this does not clear elements if length is reduced, or initialize elements if length is increased. */ function unsafeSetLength(bytes32[] storage array, uint256 len) internal { assembly ("memory-safe") { @@ -703,7 +703,7 @@ library Arrays { /** * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden. * - * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased. + * WARNING: this does not clear elements if length is reduced, or initialize elements if length is increased. */ function unsafeSetLength(uint256[] storage array, uint256 len) internal { assembly ("memory-safe") { @@ -714,7 +714,7 @@ library Arrays { /** * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden. * - * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased. + * WARNING: this does not clear elements if length is reduced, or initialize elements if length is increased. */ function unsafeSetLength(bytes[] storage array, uint256 len) internal { assembly ("memory-safe") { @@ -725,7 +725,7 @@ library Arrays { /** * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden. * - * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased. + * WARNING: this does not clear elements if length is reduced, or initialize elements if length is increased. */ function unsafeSetLength(string[] storage array, uint256 len) internal { assembly ("memory-safe") {