kosh04 / newlisp

newLISP mirror repository (unofficial)
http://www.newlisp.org/
96 stars 22 forks source link

error in fibonacci code example on the wiki #17

Open manuelcaeiro opened 4 years ago

manuelcaeiro commented 4 years ago

Greetings, Please acknowledge that the code example for the fibonacci generator on your wiki page: Introduction to newLISP/The basics is not correct. (The fibonacci of 2 is 1, not 2) This error can be easily corrected if you replace (if (< n 2)) for (if (< n 3)) in your example.

P.S.: I wouldn't mind to make the correction by editing the wiki, but I cannot because I use a public access to the internet with a VPN.