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:**