mirror of
https://github.com/tmrts/go-patterns.git
synced 2024-11-29 00:25:31 +03:00
Update builder.md
This commit is contained in:
parent
67efe3e622
commit
7e1c604e1b
@ -51,7 +51,7 @@ type Interface interface {
|
||||
## Usage
|
||||
|
||||
```go
|
||||
assembly := car.NewBuilder().Paint(car.RedColor)
|
||||
assembly := car.NewBuilder().Color(car.RedColor)
|
||||
|
||||
familyCar := assembly.Wheels(car.SportsWheels).TopSpeed(50 * car.MPH).Build()
|
||||
familyCar.Drive()
|
||||
|
Loading…
Reference in New Issue
Block a user