From da745242007ce426e189ac429997d6701f255b0b Mon Sep 17 00:00:00 2001 From: Marc Duiker Date: Wed, 7 Aug 2024 22:46:43 +0200 Subject: [PATCH] Fix feature snippet Fixes boolean example in feature snippet --- src/doc/artist/snippet-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/artist/snippet-api.md b/src/doc/artist/snippet-api.md index 065028d2..67818a4c 100644 --- a/src/doc/artist/snippet-api.md +++ b/src/doc/artist/snippet-api.md @@ -221,7 +221,7 @@ You need to pass an object where keys are the feature names and their values the $fx.features({ 'A feature of type string': $fx.rand() > 0.5 ? 'Super cool' : 'Not cool !', 'Feature number': Math.floor($fx.rand() * 100), - 'A boolean feature': $fx.rand() > 0.8 > true : false, + 'A boolean feature': $fx.rand() > 0.8 ? true : false, 'A constant feature': 'constant value', }) ```