diff --git a/creational/object-pool.md b/creational/object-pool.md index c50667d..f1698ef 100644 --- a/creational/object-pool.md +++ b/creational/object-pool.md @@ -10,14 +10,14 @@ package pool type Pool chan *Object -func New(total int) *Pool { +func New(total int) Pool { p := make(Pool, total) for i := 0; i < total; i++ { p <- new(Object) } - return &p + return p } ```