From 2215cdfef409c99ecb179e0733536c8470f1d7c0 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 2 Apr 2020 00:27:25 +0200 Subject: [PATCH] crypto/ecies: fix doc comment for roundup --- crypto/ecies/ecies.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ecies/ecies.go b/crypto/ecies/ecies.go index 9f94047864..cee290b344 100644 --- a/crypto/ecies/ecies.go +++ b/crypto/ecies/ecies.go @@ -158,7 +158,7 @@ func concatKDF(hash hash.Hash, z, s1 []byte, kdLen int) []byte { return k[:kdLen] } -// roundup rounds size up to the nearest multiple of blocksize. +// roundup rounds size up to the next multiple of blocksize. func roundup(size, blocksize int) int { return size + blocksize - (size % blocksize) }