From c4ff1c2ef18a3eadfdeaedc4b97cbc103f9132e9 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 16 Sep 2024 11:50:59 -0700 Subject: [PATCH] Update types.md for constants (#3899) Update types.md --- docs/kcl/types.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/kcl/types.md b/docs/kcl/types.md index 4c2acf823..42bd0e5a2 100644 --- a/docs/kcl/types.md +++ b/docs/kcl/types.md @@ -13,14 +13,16 @@ arrays can hold objects and vice versa. `true` or `false` work when defining values. -## Variable declaration +## Constant declaration -Variables are defined with the `let` keyword like so: +Constants are defined with the `let` keyword like so: ``` let myBool = false ``` +Currently you cannot redeclare a constant. + ## Array An array is defined with `[]` braces. What is inside the brackets can