Corrected documentation.

There is no reason that a function is required as input. It
can be any object type.