Skip to content

Commit 92c56eb

Browse files
common: fix documentation of Address.SetBytes (ethereum#21814)
1 parent cf856ea commit 92c56eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (a Address) Format(s fmt.State, c rune) {
240240
}
241241

242242
// SetBytes sets the address to the value of b.
243-
// If b is larger than len(a) it will panic.
243+
// If b is larger than len(a), b will be cropped from the left.
244244
func (a *Address) SetBytes(b []byte) {
245245
if len(b) > len(a) {
246246
b = b[len(b)-AddressLength:]

0 commit comments

Comments
 (0)