Fix doc to use generic type in example.