doc: fix confusing examples

The console.log text is quite opposite to what happens to who.