Fix typo in adapter example

The current method specified results in `TypeError: undefined is not a function`.