From 55d723870882512d1a0ba9709129ce3227446e2e Mon Sep 17 00:00:00 2001 From: Dev Ojha Date: Wed, 16 Jan 2019 15:03:19 -0600 Subject: [PATCH] Add comment to simple_merkle get_split_point (#3136) * Add comment to simple_merkle get_split_point * fix grammar error --- crypto/merkle/simple_tree.go | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/merkle/simple_tree.go b/crypto/merkle/simple_tree.go index e150c0d31..5de514b51 100644 --- a/crypto/merkle/simple_tree.go +++ b/crypto/merkle/simple_tree.go @@ -32,6 +32,7 @@ func SimpleHashFromMap(m map[string][]byte) []byte { return sm.Hash() } +// getSplitPoint returns the largest power of 2 less than length func getSplitPoint(length int) int { if length < 1 { panic("Trying to split a tree with size < 1")