I’ve done a brief run-through of the tutorial. There is one immediately obvious issue: the Number Methods example in the Math section fails with an error in Crystal 0.36.1, as well as in Crystal 1.0.0. This is due to the gcd
method being called with the wrong number of arguments (zero, when there should be one). The example code is 10.gcd
. It should be something like 10.gcd(16)
(or potentially any integer in place of the 16). The syntax 10.gcd 16
also works, but !p
prints it as 10.gcd(16)
anyway.
3 Likes