triangle: Move a comment near the relevant code
docs: Fix formatting