diff options
author | alirezaghey <alireza.q1357@gmail.com> | 2021-09-19 08:20:00 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-09-22 08:25:00 -0400 |
commit | b47fafd95a604fea5017beb1c968092c09fd4d7d (patch) | |
tree | 2e727fa31eec21ba5fd311a905f39c3c17076500 | |
parent | 92257abd4b64f0496204adb19462d05c1d6475e3 (diff) | |
download | haskell-b47fafd95a604fea5017beb1c968092c09fd4d7d.tar.gz |
Fix minor inconsistency in documentation
fixes #20388
-rw-r--r-- | libraries/base/GHC/List.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/GHC/List.hs b/libraries/base/GHC/List.hs index d13749923c..658cd2c367 100644 --- a/libraries/base/GHC/List.hs +++ b/libraries/base/GHC/List.hs @@ -845,7 +845,7 @@ dropWhile p xs@(x:xs') | otherwise = xs -- | 'take' @n@, applied to a list @xs@, returns the prefix of @xs@ --- of length @n@, or @xs@ itself if @n > 'length' xs@. +-- of length @n@, or @xs@ itself if @n >= 'length' xs@. -- -- >>> take 5 "Hello World!" -- "Hello" @@ -918,7 +918,7 @@ takeFB c n x xs #endif -- | 'drop' @n xs@ returns the suffix of @xs@ --- after the first @n@ elements, or @[]@ if @n > 'length' xs@. +-- after the first @n@ elements, or @[]@ if @n >= 'length' xs@. -- -- >>> drop 6 "Hello World!" -- "World!" |