Code comment changes for wait()

It is more common to use a condition returning a promise rather than a boolean, and this is supported by wait(). The angular protractor documentation is missing this important information due to it being generated from this function.