From 5f511fd5e31c84cf4a96803bc7aeac847a711f79 Mon Sep 17 00:00:00 2001 From: melontini <104443436+melontini@users.noreply.github.com> Date: Fri, 10 May 2024 04:43:08 +0700 Subject: [PATCH] typo --- docs/Expressions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Expressions.md b/docs/Expressions.md index a2c18ee..3469906 100644 --- a/docs/Expressions.md +++ b/docs/Expressions.md @@ -42,7 +42,7 @@ All functions construct new arrays and do not mutate the original array. | Function | Description | Arguments | Example | |---|---|---|---| | `structContainsKey` | Checks if a struct contains some key. | `struct`, `key...` | `structContainsKey(block_state.properties, 'candles')` | -| `hasContext` | Checks if a expression parameter is available | `key...` | `hasContext('tool')` | +| `hasContext` | Checks if an expression parameter is available | `key...` | `hasContext('tool')` | | `length` | Returns the length of the specified object or 0. | `value` | `length('Hello World!')` | | `strFormat` | Formats a string according to the pattern. | `pattern`, `args...` | `strFormat('Hello %s World!', 23)` | | `ifMatches` | Simillar to built-in `if`, but with Lambdas. | `value`, `predicate(λ)`, `ifTrue(λ)`, `ifFalse(λ)` | `ifMatches(arrayFind(arrayOf(0,1,2), it == 1), length(it) > 0, it[0], 0)` | @@ -141,4 +141,4 @@ Using the provider in conditions: "max": 32 } } -``` \ No newline at end of file +```