From 8a7cdc171f9e56fc54227720acaa78db3948747a Mon Sep 17 00:00:00 2001 From: mihleonid <37627696+mihleonid@users.noreply.github.com> Date: Mon, 11 Mar 2024 14:42:55 +0300 Subject: 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. --- ru-ru/haskell-ru.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ru-ru') 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 для кортежей выглядит так -- cgit v1.2.3