Add missing comma in code example in extending.md

:eyes: