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

Closes #4900

ammula88/angular.js,ammula88/angular.js,ammula88/angular.js,ammula88/angular.js,ammula88/angular.js