Skip to content

Commit

Permalink
Update KCL docs (#291)
Browse files Browse the repository at this point in the history
YOYO NEW KCL DOCS!!

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 4c84794 commit 1a359ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/pages/docs/kcl/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1a359ab

Please sign in to comment.