Skip to content

Commit 761099d

Browse files
committed
Fix comment in 'HashSet' 'size'
1 parent 506c84b commit 761099d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/HashSet/Base.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ null :: HashSet a -> Bool
307307
null = H.null . asMap
308308
{-# INLINE null #-}
309309

310-
-- | /O(n)/ Return the number of elements in this set.
310+
-- | /O(1)/ Return the number of elements in this set.
311311
size :: HashSet a -> Int
312312
size = H.size . asMap
313313
{-# INLINE size #-}

0 commit comments

Comments
 (0)