Update doc for the hook example.