summaryrefslogtreecommitdiffhomepage
path: root/ru-ru
diff options
context:
space:
mode:
authormihleonid <37627696+mihleonid@users.noreply.github.com>2024-03-11 14:42:55 +0300
committerGitHub <noreply@github.com>2024-03-11 12:42:55 +0100
commit8a7cdc171f9e56fc54227720acaa78db3948747a (patch)
treeacc0826b2b281756111cfe386df986d3521b72be /ru-ru
parentc2c7195779196280f914c2b20b2ef4a811924385 (diff)
Update haskell-ru.html.markdown (#4696)
"fib" is mentioned three times in this document. First and last time fib 2 = 1. I suppose that in the second time fib 2 = 2 was a typo.
Diffstat (limited to 'ru-ru')
-rw-r--r--ru-ru/haskell-ru.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/ru-ru/haskell-ru.html.markdown b/ru-ru/haskell-ru.html.markdown
index b1b8eb79..f04c45e2 100644
--- a/ru-ru/haskell-ru.html.markdown
+++ b/ru-ru/haskell-ru.html.markdown
@@ -172,7 +172,7 @@ fib x
первое определение, к образцу которого
"подойдет" набор аргументов -}
fib 1 = 1
-fib 2 = 2
+fib 2 = 1
fib x = fib (x - 1) + fib (x - 2)
-- Pattern matching для кортежей выглядит так