From 7990195e5fff31bdfcd47a6682f35e844768ed34 Mon Sep 17 00:00:00 2001 From: verysimplyms Date: Wed, 6 Sep 2017 01:56:48 -0700 Subject: [PATCH] docs: fix typo in README --- examples/libp2p-host/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/libp2p-host/README.md b/examples/libp2p-host/README.md index e84834a..ba59b7d 100644 --- a/examples/libp2p-host/README.md +++ b/examples/libp2p-host/README.md @@ -31,7 +31,7 @@ if err != nil { // A peerstore holds information about peers, including your own ps := pstore.NewPeerstore() ps.AddPrivKey(pid, priv) -ps.AddPubKey(pid, priv) +ps.AddPubKey(pid, pub) ``` Next, you'll need at least one address that you want to listen on. You can go from a string to a multiaddr like this: -- GitLab