diff --git a/behavioral/strategy.md b/behavioral/strategy.md index e04e683..08790c8 100644 --- a/behavioral/strategy.md +++ b/behavioral/strategy.md @@ -25,7 +25,7 @@ func (o *Operation) Operate(leftValue, rightValue int) int { ```go type Addition struct{} -func (Addition) Apply(lval, rval int) int { +func (a Addition) Apply(lval, rval int) int { return lval + rval } ```