Skip to content

Commit

Permalink
common: fix documentation of Address.SetBytes (#21814)
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalDierich authored Nov 16, 2020
1 parent cf856ea commit 92c56eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit 92c56eb

Please sign in to comment.