Skip to content

Commit a20a1dd

Browse files
committed
Align the nubByEq example with the other ones
1 parent a4635c8 commit a20a1dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Data/Array.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,8 @@ nubBy comp xs = case head indexedAndSorted of
921921
-- | relation.
922922
-- |
923923
-- | ```purescript
924-
-- | nubByEq (\a b -> a `mod` 3 == b `mod` 3) [1, 3, 4, 5, 6] = [1,3,5]
924+
-- | mod3eq a b = a `mod` 3 == b `mod` 3
925+
-- | nubByEq mod3eq [1, 3, 4, 5, 6] = [1, 3, 5]
925926
-- | ```
926927
-- |
927928
nubByEq :: forall a. (a -> a -> Boolean) -> Array a -> Array a

0 commit comments

Comments
 (0)