From b1d0b7f36e195bf7e2affc49e50512506c6c2d4b Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 19 Sep 2024 21:34:18 +0300 Subject: [PATCH] Fix critical typo in coercions.md --- docs/reference/coercions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/coercions.md b/docs/reference/coercions.md index 59807c63..8e6e69bb 100644 --- a/docs/reference/coercions.md +++ b/docs/reference/coercions.md @@ -40,6 +40,6 @@ const b = create('42', MyNumber) // 42 const c = create(false, MyNumber) // error thrown! ``` -The second argument to `coerce` is a struct narrowing the types of input values you want to try coercion. In the example above, the coercion functionn will only ever be called when the input is a string—booleans would ignore coercion and fail normally. +The second argument to `coerce` is a struct narrowing the types of input values you want to try coercion. In the example above, the coercion function will only ever be called when the input is a string—booleans would ignore coercion and fail normally. > 🤖 If you want to run coercion for any type of input, use the `unknown()` struct to run it in all cases.