From 111ccb7b074af009c42a383ee26b880d1b218f3c Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Sat, 28 Mar 2020 22:28:51 +0000 Subject: [PATCH] docs: fix swarm addrs return type --- docs/core-api/SWARM.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core-api/SWARM.md b/docs/core-api/SWARM.md index c10cb9bcd1..80eb70ff1c 100644 --- a/docs/core-api/SWARM.md +++ b/docs/core-api/SWARM.md @@ -18,7 +18,7 @@ | Type | Description | | -------- | -------- | -| `Promise<{ id: String, addrs: Multiaddr[] }>` | A promise that resolves to an object with `id` and `addrs`. `id` is a String - the peer's ID and `addrs` is an array of [Multiaddr](https://github.com/multiformats/js-multiaddr/) - addresses for the peer. | +| `Promise>` | A promise that resolves to an array of objects with `id` and `addrs`. `id` is a String - the peer's ID and `addrs` is an array of [Multiaddr](https://github.com/multiformats/js-multiaddr/) - addresses for the peer. | **Example:**