summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2014-11-01 11:37:53 +0100
committerJoachim Breitner <mail@joachim-breitner.de>2014-11-01 11:37:53 +0100
commit65346865f1177fc89767de09604376ffea45bd4d (patch)
treedc1fa85e5ea99a25adf5686050e81d3bce1c1e08
parentd15d70447769c11d708e18078a475406f3b58491 (diff)
downloadhaskell-65346865f1177fc89767de09604376ffea45bd4d.tar.gz
Fix comment about dropWhileEndLE
-rw-r--r--utils/hpc/HpcUtils.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hpc/HpcUtils.hs b/utils/hpc/HpcUtils.hs
index 73d9cd3a87..4f98556176 100644
--- a/utils/hpc/HpcUtils.hs
+++ b/utils/hpc/HpcUtils.hs
@@ -4,7 +4,7 @@ import Trace.Hpc.Util
import qualified Data.Map as Map
dropWhileEndLE :: (a -> Bool) -> [a] -> [a]
--- Spec: dropWhileEndLE p = reverse . dropWhileEnd . reverse
+-- Spec: dropWhileEndLE p = reverse . dropWhile p . reverse
dropWhileEndLE p = foldr (\x r -> if null r && p x then [] else x:r) []
-- turns \n into ' '