From b3d85b3dee4fcd7c5c187f6c33efdc584c5aed3e Mon Sep 17 00:00:00 2001 From: Kevin Atkinson Date: Thu, 30 Aug 2018 00:38:17 -0400 Subject: [PATCH] Enhance documentation for Encode method. --- cid.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cid.go b/cid.go index 76e7b55..6bf2aa5 100644 --- a/cid.go +++ b/cid.go @@ -339,7 +339,8 @@ func (c *Cid) StringOfBase(base mbase.Encoding) (string, error) { } // Encode return the string representation of a Cid in a given base -// when applicable +// when applicable. Version 0 Cid's are always in Base58 as they do +// not take a multibase prefix. func (c *Cid) Encode(base mbase.Encoder) string { switch c.version { case 0: