Adding rule for nested functions.

I'm open to feedback on the wording and examples. 

@kenkouot @hakubo
Hmm, ```foo``` is pretty arbitrary here - it could be a local var in a wrapping function's scope, it could be a global variable, or it could be passed in as a param to the callback. It doesn't really matter for the sake of this example, so I figure just leave it ambiguous.