Correct loop() documentation example

Corrects incorrect example as described in #107