Merge "Update code examples in docs/hooks.txt"