From 2bd4879f72068fe920bd910a2fc58af2324d37e7 Mon Sep 17 00:00:00 2001 From: Kamaleshwar <1092882+bnkamalesh@users.noreply.github.com> Date: Tue, 16 Jul 2019 14:38:07 +0530 Subject: [PATCH] Mismatching interface method (Pain => Color) --- 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()