diff --git a/website/docs/language/expressions/custom-conditions.mdx b/website/docs/language/expressions/custom-conditions.mdx index fe9d45849a38..b032126b2ce0 100644 --- a/website/docs/language/expressions/custom-conditions.mdx +++ b/website/docs/language/expressions/custom-conditions.mdx @@ -242,7 +242,7 @@ Use the [`can` function](/language/functions/can) to concisely use the validity For example, you can use `can` with `regex` to test if a string matches a particular pattern because `regex` returns an error when given a non-matching string. ```hcl - condition = can(regex("^[a-z]+$", var.name) + condition = can(regex("^[a-z]+$", var.name)) ``` You can also use `can` with the type conversion functions to test whether a value is convertible to a type or type constraint.