Closed mikhail-turilin-dfinity closed 2 years ago
We should explain in the doc that nested do expressions require parens.
https://internetcomputer.org/docs/current/developer-docs/build/languages/motoko/basic-concepts#from-declarations-to-block-expressions might be a good place to add this (at the end)
Fixed in doc branch here https://github.com/dfinity/motoko/pull/3172/commits/5c99f088131338854d413cecbf072ba4479cb426 @mikhail-turilin-dfinity
(This will propagate to the web the next time the portal team does a sync)
In the following example function "number2" doesn't compile and it's not clear why.