summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/GHC/Utils/Misc.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Utils/Misc.hs b/compiler/GHC/Utils/Misc.hs
index 8fba20a3c3..6597328ace 100644
--- a/compiler/GHC/Utils/Misc.hs
+++ b/compiler/GHC/Utils/Misc.hs
@@ -236,7 +236,7 @@ applyWhen :: Bool -> (a -> a) -> a -> a
applyWhen True f x = f x
applyWhen _ _ x = x
--- | A for loop: Compose a function with itself n times. (nth rather than twice)
+-- | Apply a function @n@ times to a given value.
nTimes :: Int -> (a -> a) -> (a -> a)
nTimes 0 _ = id
nTimes 1 f = f