missing Parentheses on promise example in documentation