diff options
author | Julien Dessaux | 2021-10-04 23:46:32 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-10-04 23:47:07 +0200 |
commit | 7c24db334e06eed592dae73d4aeed5ae287536bb (patch) | |
tree | bce90a013156d3373f1df5142726f07ec0275522 /src/stack.nim | |
parent | Finished implementing the stackstack (diff) | |
download | nimfunge98-7c24db334e06eed592dae73d4aeed5ae287536bb.tar.gz nimfunge98-7c24db334e06eed592dae73d4aeed5ae287536bb.tar.bz2 nimfunge98-7c24db334e06eed592dae73d4aeed5ae287536bb.zip |
Cosmetics
Diffstat (limited to '')
-rw-r--r-- | src/stack.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stack.nim b/src/stack.nim index 9ba3e24..f08baf0 100644 --- a/src/stack.nim +++ b/src/stack.nim @@ -5,7 +5,7 @@ type next: ref Stack func NewStack*(size: int = 32, next: ref Stack = nil): ref Stack = - result = new(Stack) + new(result) result.size = size result.data.setlen(size) result.next = next |