docs($interval): fix missing square brackets in example

Closes #8228