Skip to content

Commit cf5ee4d

Browse files
authored
Merge pull request #42 from 0-th/patch-2
chore: fix syntax errors in code snippets
2 parents d814587 + aa8a06c commit cf5ee4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/go-w3up.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ issuer, _ := signer.Parse(priv)
115115

116116
// UCAN proof(s) that the signer can perform tasks in this space (a delegation chain)
117117
prfbytes, _ := ioutil.ReadFile("path/to/proof.ucan")
118-
proof, _ := delegation.ExtractProof(b)
118+
proof, _ := delegation.ExtractProof(prfbytes)
119119
```
120120

121121
## Upload a CAR
@@ -131,7 +131,7 @@ import (
131131
"net/http"
132132

133133
"github.com/ipfs/go-cid"
134-
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
134+
"github.com/ipld/go-ipld-prime/linking/cid"
135135
"github.com/multiformats/go-multihash"
136136
"github.com/web3-storage/go-w3up/capability/storeadd"
137137
"github.com/web3-storage/go-w3up/client"

0 commit comments

Comments
 (0)