From 004f76b61a5e75574e54fa4f3c68aa86e3a817af Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Fri, 13 Sep 2024 17:08:54 +0200 Subject: [PATCH] Typo --- docs/articles/operators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles/operators.md b/docs/articles/operators.md index e0baed2..ff053a2 100644 --- a/docs/articles/operators.md +++ b/docs/articles/operators.md @@ -187,7 +187,7 @@ Operands can be omitted. When omitted, `$` is used as a default for the conditio A query to truncate strings in array longer than 10 characters: ```jora -['short', 'and a very long string'].(size() < 10 ?: `${slice[0:10]}...`) +['short', 'and a very long string'].(size() < 10 ?: `${slice(0, 10)}...`) // Result: ["short", "and a very..."] ```