Fixed wrong example for waitFor (2nd param has to be an array)

Hi Sebastian,

as you just said in the IRC there's an error in the example of waitFor. Here's a fix for that.

Best
Marc