Fix 'when' usage example in README