From 92c56eb820eff839e062947cd6231cc8593823e5 Mon Sep 17 00:00:00 2001 From: Pascal Dierich Date: Mon, 16 Nov 2020 14:08:13 +0100 Subject: [PATCH] common: fix documentation of Address.SetBytes (#21814) --- common/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/types.go b/common/types.go index cdcc6c20ad..94cf622e8c 100644 --- a/common/types.go +++ b/common/types.go @@ -240,7 +240,7 @@ func (a Address) Format(s fmt.State, c rune) { } // SetBytes sets the address to the value of b. -// If b is larger than len(a) it will panic. +// If b is larger than len(a), b will be cropped from the left. func (a *Address) SetBytes(b []byte) { if len(b) > len(a) { b = b[len(b)-AddressLength:]