docs($q): add missing closing parentheses in code example

Closes #4900