From 51aca28237dc15a0ec5f3357bacd72bfd187adf5 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Mon, 9 Nov 2020 23:56:11 +0200 Subject: [PATCH] Update when.md --- snippets/when.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/when.md b/snippets/when.md index 20244a12b..5d19dd253 100644 --- a/snippets/when.md +++ b/snippets/when.md @@ -3,7 +3,7 @@ title: when tags: function,intermediate --- -Tests a value, `x`, against a `predicate` function, conditionally applying a function. +Tests a value, `x`, against a testing function, conditionally applying a function. - Check if the value of `predicate(x)` is `True` and if so return `when_true(x)`, otherwise return `x`.