Doc: fix template example error

template should be applied to index, not on type name.