Skip to content

Commit 531088e

Browse files
authored
Merge pull request #103 from ewaldgrusk/fix-error-in-documentation
Fix error in documentation of `scanr`
2 parents df1a66c + cc2852b commit 531088e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Traversable.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ mapAccumL f s0 xs = stateL (traverse (\a -> StateL \s -> f s a) xs) s0
169169
-- | appear in the result (unlike Haskell's `Prelude.scanr`).
170170
-- |
171171
-- | ```purescript
172-
-- | scanr (+) 0 [1,2,3] = [1,3,6]
172+
-- | scanr (+) 0 [1,2,3] = [6,5,3]
173173
-- | scanr (flip (-)) 10 [1,2,3] = [4,5,7]
174174
-- | ```
175175
scanr :: forall a b f. Traversable f => (a -> b -> b) -> b -> f a -> f b

0 commit comments

Comments
 (0)