Fix typos but needs attention

"Accepts a boolean, or a function that should return a boolean which is." ... sentence needs to be completed.