Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Docs: Add modified variable examples for no-loop-func (fixes #9527) #10098
What is the purpose of this pull request? (put an "X" next to item)
[x] Documentation update
What changes did you make? (Give an overview)
Add incorrect examples where the function within the loop refers to a variable from the outer scope that is later modified. (This contrasts with the last correct example.)
Is there anything you'd like reviewers to focus on?
Nothing in particular.