Docstring: s/if/when/

Thanks to Jonas Bernoulli.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>