Fix small code styling inconsistencies with CONTRIBUTING.md

Exrtact styling commit from #4807