Skip to content

Commit a4c962a

Browse files
committed
Add one more (short) way to build point
1 parent 40b5ce5 commit a4c962a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/creational/builder.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ let uglierPoint = Point {
4646
$0.y = 0.2
4747
$0.z = 0.3
4848
}
49+
50+
let alsoUglyPoint = Point { ($0.x, $0.y, $0.z) = (0.1, 0.2, 0.3) }
51+
4952
```

0 commit comments

Comments
 (0)