mirror of
https://github.com/tmrts/go-patterns.git
synced 2024-11-22 13:06:09 +03:00
Nothing special on Strategy
This commit is contained in:
parent
4b81980a1f
commit
9d31146eac
@ -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
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user