summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-04-19 16:56:43 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-04-19 16:56:43 +0200
commit9e1d721d5a00216721f6823ff8c84707c2a3b64c (patch)
tree41faae1c16841a404c8f1a6e1a0e170fc136281b
parentfe8f23a25989b3ae287975d08e7e5a47ec5ff1e8 (diff)
Return actual new
-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