This adds some comments and uses structured bindings in range-based for loops to improve readability. It also adds const to unmodified variables in a loop.
Checklist
[X] Signed all commits for DCO
[ ] Added tests
[X] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
🦟 Bug fix
Backport of #2403 to Garden
Summary
Original description:
This adds some comments and uses structured bindings in range-based for loops to improve readability. It also adds
const
to unmodified variables in a loop.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Rebase-and-Merge.