diff --git a/docs/kcl/types.md b/docs/kcl/types.md index 673db9c3f..5e786e0af 100644 --- a/docs/kcl/types.md +++ b/docs/kcl/types.md @@ -54,7 +54,7 @@ We also have support for defining your own functions. Functions can take in any type of argument. Below is an example of the syntax: ``` -fn myFn = (x) => { +fn myFn(x) { return x } ``` @@ -118,7 +118,7 @@ use the tag `rectangleSegmentA001` in any function or expression in the file. However if the code was written like this: ``` -fn rect = (origin) => { +fn rect(origin) { return startSketchOn('XZ') |> startProfileAt(origin, %) |> angledLine([0, 191.26], %, $rectangleSegmentA001) @@ -146,7 +146,7 @@ Tags are accessible through the sketch group they are declared in. For example the following code works. ``` -fn rect = (origin) => { +fn rect(origin) { return startSketchOn('XZ') |> startProfileAt(origin, %) |> angledLine([0, 191.26], %, $rectangleSegmentA001) diff --git a/public/kcl-samples-manifest-fallback.json b/public/kcl-samples-manifest-fallback.json index de6867795..b54d49a02 100644 --- a/public/kcl-samples-manifest-fallback.json +++ b/public/kcl-samples-manifest-fallback.json @@ -149,6 +149,11 @@ "title": "Tire", "description": "A tire is a critical component of a vehicle that provides the necessary traction and grip between the car and the road. It supports the vehicle's weight and absorbs shocks from road irregularities." }, + { + "file": "wall-e.kcl", + "title": "WALL-E", + "description": "An inquisitive trash compacting robot imagined by Disney Pixar Animation Studios" + }, { "file": "washer.kcl", "title": "Washer",