Skip to content

Commit

Permalink
use interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiefMateStarbuck committed Dec 22, 2021
1 parent d688698 commit 83f1f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c *Counter[T]) MinusCounter() T {
return c.t
}

func NewCounter[T Int64](t T, counter T) *Counter[T] {
func NewCounter[T Int64](t T, counter T) NumberPlayer[T] {
return &Counter[T]{
t: t,
counter: counter,
Expand Down

0 comments on commit 83f1f6e

Please sign in to comment.