Skip to content

Commit 823c6b8

Browse files
Fix README.md example error (#146)
1 parent 350d6af commit 823c6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import (
6969
// Create a cid manually by specifying the 'prefix' parameters
7070
pref := cid.Prefix{
7171
Version: 1,
72-
Codec: mc.Raw,
72+
Codec: uint64(mc.Raw),
7373
MhType: mh.SHA2_256,
7474
MhLength: -1, // default length
7575
}

0 commit comments

Comments
 (0)