Fix error in gather_if's documentation

Reported by Björn Hegstam