diff --git a/snippets/when.md b/snippets/when.md index 16dbe9a54..fd36e1a20 100644 --- a/snippets/when.md +++ b/snippets/when.md @@ -1,7 +1,7 @@ ### when Tests a value, `x`, against a predicate function. If `true`, return `fn(x)`. Else, return `x`. -`when(pred, whenTrue)` returns another function expecting `x` for better composability. +`when(pred, whenTrue)` returns a function expecting `x` for better composability. ```js const when = (pred, whenTrue) => (x) => pred(x) ? whenTrue(x) : x;