aboutsummaryrefslogtreecommitdiff
path: root/src/huffmantree.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/huffmantree.nim')
-rw-r--r--src/huffmantree.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/huffmantree.nim b/src/huffmantree.nim
index c57b55c..44c9990 100644
--- a/src/huffmantree.nim
+++ b/src/huffmantree.nim
@@ -24,12 +24,12 @@ type HuffmanTreeNodeKind* = enum
24 leaf 24 leaf
25 25
26type HuffmanTreeNode*[T: SomeUnsignedInt] = ref object 26type HuffmanTreeNode*[T: SomeUnsignedInt] = ref object
27 case kind: HuffmanTreeNodeKind 27 case kind*: HuffmanTreeNodeKind
28 of branch: 28 of branch:
29 left, right: HuffmanTreeNode[T] 29 left*, right*: HuffmanTreeNode[T]
30 maxChildValue: T 30 maxChildValue: T
31 of leaf: 31 of leaf:
32 value: T 32 value*: T
33 weight: int 33 weight: int
34 34
35proc huffmanBranch*[T](left, right: HuffmanTreeNode[T]): HuffmanTreeNode[T] = 35proc huffmanBranch*[T](left, right: HuffmanTreeNode[T]): HuffmanTreeNode[T] =