summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGalen Huntington <galenhuntington@gmail.com>2017-12-31 23:43:15 -0800
committerBen Gamari <ben@smart-cactus.org>2018-01-02 15:55:11 -0500
commitb31c7214b7ccf31b6a78faac1a3cc5c39cdff56d (patch)
treee3e7d021cf15eb8270cf3d27d1360613ee757272 /docs
parenta2e95495c1f770f20c2e882e72401cad5ed864d6 (diff)
downloadhaskell-b31c7214b7ccf31b6a78faac1a3cc5c39cdff56d.tar.gz
Fix sign error in kelvinToC.
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/glasgow_exts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index 201aa77f08..03ea986de7 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -12878,7 +12878,7 @@ GHC offers a helping hand here, doing all of this for you. For every use
of ``assert`` in the user's source: ::
kelvinToC :: Double -> Double
- kelvinToC k = assert (k >= 0.0) (k+273.15)
+ kelvinToC k = assert (k >= 0.0) (k-273.15)
GHC will rewrite this to also include the source location where the
assertion was made, ::