Unverified Commit c2643b2a authored by LiranV's avatar LiranV Committed by GitHub
Browse files

Fix can function example

Example was missing a closing bracket
parent 05944cc0
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment