[PATCH] docs: point out that locals should be defined at the top of a block of code