Updated Adapter example

Fixed some mistakes in the Adapter example. Documentation example also updated here: https://github.com/realm/realm.io/pull/140

@kneth @bmunkholm 
Yes, you are right, it should be. Good catch.