Skip to content

Commit d3303e3

Browse files
authored
docs: Add default value and code formatting to extrude() method parameter (#7873)
* docs: Add default value and code formatting to extrude() method parameter
1 parent 7d03382 commit d3303e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/kcl-std/functions/std-sketch-extrude.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extruded in the same direction.
3838
| `twistAngle` | [`number(Angle)`](/docs/kcl-std/types/std-types-number) | If given, the sketch will be twisted around this angle while being extruded. | No |
3939
| `twistAngleStep` | [`number(Angle)`](/docs/kcl-std/types/std-types-number) | The size of each intermediate angle as the sketch twists around. Must be between 4 and 90 degrees. Only used if `twistAngle` is given, defaults to 15 degrees. | No |
4040
| `twistCenter` | [`Point2d`](/docs/kcl-std/types/std-types-Point2d) | The center around which the sketch will be twisted. Relative to the sketch's center. Only used if `twistAngle` is given, defaults to [0, 0] i.e. sketch's center. | No |
41-
| `method` | [`string`](/docs/kcl-std/types/std-types-string) | The method used during extrusion, i.e. create a NEW object or MERGE the extruded objects together. | No |
41+
| `method` | [`string`](/docs/kcl-std/types/std-types-string) | The method used during extrusion, either `NEW` or `MERGE`. `NEW` creates a new object. `MERGE` merges the extruded objects together. The default is `MERGE`. | No |
4242

4343
### Returns
4444

rust/kcl-lib/std/sketch.kcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ export fn extrude(
467467
/// Only used if `twistAngle` is given, defaults to [0, 0] i.e. sketch's center.
468468
@(snippetArray = ["0", "0"])
469469
twistCenter?: Point2d,
470-
/// The method used during extrusion, i.e. create a NEW object or MERGE the extruded objects together.
470+
/// The method used during extrusion, either `NEW` or `MERGE`. `NEW` creates a new object. `MERGE` merges the extruded objects together. The default is `MERGE`.
471471
method?: string,
472472
): [Solid; 1+] {}
473473

0 commit comments

Comments
 (0)