Add missing return statement in extending docs

Fix by @AXGKl, fixes #447
1 file changed