1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2024-11-25 06:26:06 +03:00

Replace non-existing method Paint with Color

This commit is contained in:
Mateusz Prazmowski 2021-03-22 11:12:24 +01:00 committed by GitHub
parent f978e42036
commit 00ebbdb97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()