Skip to content

Commit cea3186

Browse files
Shimuuarkonsumlamm
andauthored
Formatting
Co-authored-by: konsumlamm <[email protected]>
1 parent 9301ff3 commit cea3186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector/src/Data/Vector/Internal/Check.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ checkSlice :: HasCallStack => Checks -> Int -> Int -> Int -> a -> a
142142
checkSlice kind i m n x
143143
= check kind (checkSlice_msg i m n) (i >= 0 && m >= 0 && m <= n - i) x
144144

145-
-- Lengths are never negative, so we can check 0 <= i < length v
145+
-- Lengths are never negative, so we can check @0 <= i < length v@
146146
-- using one unsigned comparison.
147147
inRange :: Int -> Int -> Bool
148148
{-# INLINE inRange #-}

0 commit comments

Comments
 (0)