Thank you for looking into it! I am relieved it is not a bug. As you can see in the screenshot there is a curly brace missing in the API description. And by mistake I put it incorrectly.
Would you mind filing an issue or PR if the docs are wrong?