doc: properly document the callback parameter

Right now you can only guess what this callback does by looking at the example, and it looks like it's required when it's actually optional.