Fix incorrect adapter example.

Closes #1668 Thanks @aprescott