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.
This commit is contained in:
mihleonid 2024-03-11 14:42:55 +03:00 committed by GitHub
parent c2c7195779
commit 8a7cdc171f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,7 +172,7 @@ fib x
первое определение, к образцу которого первое определение, к образцу которого
"подойдет" набор аргументов -} "подойдет" набор аргументов -}
fib 1 = 1 fib 1 = 1
fib 2 = 2 fib 2 = 1
fib x = fib (x - 1) + fib (x - 2) fib x = fib (x - 1) + fib (x - 2)
-- Pattern matching для кортежей выглядит так -- Pattern matching для кортежей выглядит так