summaryrefslogtreecommitdiffhomepage
path: root/haskell.html.markdown
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2017-02-09 16:27:29 +0100
committerGitHub <noreply@github.com>2017-02-09 16:27:29 +0100
commit0a0080a955c11c9b29757d20c74412e6ced67f16 (patch)
treed52c65551ed6d5e07a43709630a05290e43febc9 /haskell.html.markdown
parentd064763e9599f3ef4b7bccc1ed7d9df3687367ac (diff)
#2550
Diffstat (limited to 'haskell.html.markdown')
-rw-r--r--haskell.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown
index 2b6aa2f7..ce804415 100644
--- a/haskell.html.markdown
+++ b/haskell.html.markdown
@@ -152,7 +152,7 @@ fib x
| otherwise = fib (x - 1) + fib (x - 2)
-- Pattern matching is similar. Here we have given three different
--- equations for fib. Haskell will automatically use the first
+-- equations that define fib. Haskell will automatically use the first
-- equation whose left hand side pattern matches the value.
fib 1 = 1
fib 2 = 2
@@ -198,7 +198,7 @@ foo 5 -- 15
-- multiplies the result of that by 4, and then returns the final value.
foo = (4*) . (10+)
--- 4*(10+ 5) = 60
+-- 4*(10+5) = 60
foo 5 -- 60
-- fixing precedence