docs: added a missing "local" keyword to the code sample. thanks Wendal Chen for the patch in #21.