From 683d2857f3ffe6abd8175e33c64e33a004b4b5b1 Mon Sep 17 00:00:00 2001 From: samlior Date: Wed, 18 Nov 2020 16:12:01 +0800 Subject: [PATCH] docs(fix): fix contentRouting.getMany --- doc/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/API.md b/doc/API.md index 69e0ca4f78..d277ba87c4 100644 --- a/doc/API.md +++ b/doc/API.md @@ -665,7 +665,7 @@ Queries the DHT for the n values stored for the given key (without sorting). // ... const key = '/key' -const { from, val } = await libp2p.contentRouting.get(key) +const records = await libp2p.contentRouting.getMany(key, 2) ``` ### peerRouting.findPeer