From 3a2ec00c2191c1d3ccc4d9703f7c173201988b6b Mon Sep 17 00:00:00 2001 From: Francisco Date: Wed, 26 Jul 2023 16:38:11 -0300 Subject: [PATCH] edit comment --- contracts/utils/structs/DoubleEndedQueue.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/utils/structs/DoubleEndedQueue.sol b/contracts/utils/structs/DoubleEndedQueue.sol index 8c47e6c40d5..928665beee8 100644 --- a/contracts/utils/structs/DoubleEndedQueue.sol +++ b/contracts/utils/structs/DoubleEndedQueue.sol @@ -133,7 +133,7 @@ library DoubleEndedQueue { */ function at(Bytes32Deque storage deque, uint256 index) internal view returns (bytes32 value) { if (index >= length(deque)) revert QueueOutOfBounds(); - // by construction, length is a uint128, so the check enshures that index can safelly be casted to a uint128. + // By construction, length is a uint128, so the check above ensures that index can be safely downcast to uint128. unchecked { return deque._data[deque._begin + uint128(index)]; }