vlang / website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Fibonacci + memoization" example doesn't compile

OpenSourceAnarchist opened this issue · comments

I was exploring the website and in the playground I got a compiler error just by running Fibonacci + memoization. I was able to naively fix it (I've never programmed in V) just by adding "mut: " before the "nums []int" field of Fib.

Hope that helps!

No, it's spelled correctly :)

The example has been updated, thanks.