From 1807dd7f9c7e2a5b4b8ba255b5d9b6fc47c36675 Mon Sep 17 00:00:00 2001 From: Acho Arnold Date: Wed, 22 Jan 2020 13:28:54 +0100 Subject: [PATCH] Chaning Paint to Color This ensures that the example is reflective of the code. --- creational/builder.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/creational/builder.md b/creational/builder.md index e19179e..02e9217 100644 --- a/creational/builder.md +++ b/creational/builder.md @@ -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()