Skip to content

Commit

Permalink
edit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Jul 26, 2023
1 parent 53ac10d commit 3a2ec00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/utils/structs/DoubleEndedQueue.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)];
}
Expand Down

0 comments on commit 3a2ec00

Please sign in to comment.