Archived
1
0
Fork 0

Cosmetics

This commit is contained in:
Julien Dessaux 2021-10-04 23:46:32 +02:00
parent c9b3a999bd
commit 7c24db334e
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -6,7 +6,7 @@ type
head: ref Stack
func NewStackStack*(): ref StackStack =
result = new(StackStack)
new(result)
result.head = NewStack()
result.height = 1