Skip to content

Commit

Permalink
docs(iges): fix readme code example (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular authored Oct 16, 2019
1 parent 0ca5a4c commit e018379
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/iges/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ doc.start = [
"Defines single open 2D polyline (type 106)"
];

iges.addPolyline2d(doc, [
iges.addPolyline(doc, [
[0,0],
[0, 100],
[50, 150],
Expand All @@ -60,6 +60,8 @@ iges.addPolyline2d(doc, [
console.log(iges.serialize(doc));
```

Resulting output (IGES is a text file format):

```iges
Example file for @thi.ng/iges S 1
Defines single open 2D polyline (type 106) S 2
Expand Down

0 comments on commit e018379

Please sign in to comment.