1
0
Fork 0
mirror of https://github.com/tmrts/go-patterns.git synced 2025-04-02 20:56:12 +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()