summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Debon <julien.debon@pm.me>2020-01-27 16:18:55 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-08 10:22:07 -0500
commit3900cb83fb10b0209fb5fb1d713bf3aaf3ee42b8 (patch)
treeabb495b624d4df9da079c2506248f204d24a9482
parent768e58664ffd408e5c4e3bea8f00a650cd0c6501 (diff)
downloadhaskell-3900cb83fb10b0209fb5fb1d713bf3aaf3ee42b8.tar.gz
Apply suggestion to libraries/base/GHC/List.hs
-rw-r--r--libraries/base/GHC/List.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/GHC/List.hs b/libraries/base/GHC/List.hs
index f55e2d7abb..10ba7d802d 100644
--- a/libraries/base/GHC/List.hs
+++ b/libraries/base/GHC/List.hs
@@ -243,7 +243,7 @@ filterFB c p x r | p x = x `c` r
-- 42
-- >>> foldl (-) 100 [1..4]
-- 90
--- >>> foldl (\reverseString nextChar -> nextChar : reverseString) "foo" ['a', 'b', 'c', 'd']
+-- >>> foldl (\reversedString nextChar -> nextChar : reversedString) "foo" ['a', 'b', 'c', 'd']
-- "dcbafoo"
foldl :: forall a b. (b -> a -> b) -> b -> [a] -> b
{-# INLINE foldl #-}