rlp: fix typo in comment (#24595)

Co-authored-by: Yong Yang <yangyong775654@163.com>
pull/24617/head
flowerofdream 3 years ago committed by GitHub
parent 8ec8b81b29
commit 33022c2e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rlp/doc.go

@ -37,7 +37,7 @@ call EncodeRLP on nil pointer values.
To encode a pointer, the value being pointed to is encoded. A nil pointer to a struct To encode a pointer, the value being pointed to is encoded. A nil pointer to a struct
type, slice or array always encodes as an empty RLP list unless the slice or array has type, slice or array always encodes as an empty RLP list unless the slice or array has
elememt type byte. A nil pointer to any other value encodes as the empty string. element type byte. A nil pointer to any other value encodes as the empty string.
Struct values are encoded as an RLP list of all their encoded public fields. Recursive Struct values are encoded as an RLP list of all their encoded public fields. Recursive
struct types are supported. struct types are supported.

Loading…
Cancel
Save