aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Forster <e-e-e@users.noreply.github.com>2017-07-05 06:48:51 +1000
committerKarissa McKelvey <karissa@users.noreply.github.com>2017-07-04 13:48:51 -0700
commitfb6f79fbb85444933d2771ea4311f1e08613f1e4 (patch)
tree1d3c057620250d2bb1bf4be6d70267a7d58388cc
parentd898ac97b6b541cf6d807bce530da45e25be9797 (diff)
downloaddat-docs-fb6f79fbb85444933d2771ea4311f1e08613f1e4.tar.gz
dat-docs-fb6f79fbb85444933d2771ea4311f1e08613f1e4.zip
fix typo in example code. (#68)
-rw-r--r--docs/cookbook/browser.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cookbook/browser.md b/docs/cookbook/browser.md
index ee20f9b..0a7d0bd 100644
--- a/docs/cookbook/browser.md
+++ b/docs/cookbook/browser.md
@@ -101,7 +101,7 @@ var archive = hyperdrive()
var link = archive.discoveryKey.toString('hex')
var swarm = webrtc(signalhub(link, DEFAULT_SIGNALHUBS))
-swarm.on('peer', function (peer) {
+swarm.on('peer', function (conn) {
var peer = archive.replicate({
upload: true,
download: true