[docs] Add parens to defeat ASI in example

Fixes #1996.