Skip to content

Commit 8323339

Browse files
pedrosousasdnts
authored andcommitted
[Ruleset Engine] Fix concat() documentation (cloudflare#23039)
1 parent ca87d4a commit 8323339

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/content/docs/ruleset-engine/rules-language/functions.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ You can only use the `cidr6()` function in [custom rules](/waf/custom-rules/) an
102102
### `concat`
103103

104104
{/* prettier-ignore */}
105-
<code>concat(<Type text="String | Integer | Bytes | Array elements" />)</code>: <Type text="String" />
105+
<code>concat(<Type text="String | Bytes | Array" />)</code>: <Type text="String | Array" />
106106

107-
Takes a comma-separated list of values. Concatenates the argument values into a single String.
107+
Takes a comma-separated list of values. Concatenates the argument values into a single String or array.
108108

109-
For example, `concat("String1", " ", "String", 2)` will return `"String1 String2"`.
109+
The return type depends on the type of input arguments. For example, if you concatenate arrays, the function will return an array.
110+
111+
For example, `concat("String1", " ", "String", "2")` will return `"String1 String2"`.
110112

111113
### `decode_base64`
112114

0 commit comments

Comments
 (0)