From 17715c8b72ef86dbacaf03fa6e24bf2fb7bbecf6 Mon Sep 17 00:00:00 2001 From: flowerofdream <775654398@qq.com> Date: Wed, 30 Mar 2022 02:30:09 +0800 Subject: [PATCH] rlp: fix typo in comment (#24595) Co-authored-by: Yong Yang --- rlp/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rlp/doc.go b/rlp/doc.go index 113828e39b90..e4404c978da7 100644 --- a/rlp/doc.go +++ b/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 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 types are supported.