summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/stack.go b/stack.go
index 1d5cdb0..4f9d4c0 100644
--- a/stack.go
+++ b/stack.go
@@ -5,8 +5,8 @@ package stack
type Stack []interface{}
// New allocates a new Stack
-func New() Stack {
- return Stack{}
+func New() *Stack {
+ return new(Stack)
}
// Push value at tail