Skip to content

Commit 7f4662f

Browse files
wemeetagainjacobheun
authored andcommittedMay 28, 2020
chore: fix api formatting (#644)
1 parent 84b935f commit 7f4662f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎doc/API.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ Get the known `PublicKey` of a provided peer.
906906

907907
| Type | Description |
908908
|------|-------------|
909-
| `RsaPublicKey|Ed25519PublicKey|Secp256k1PublicKey` | Peer PublicKey |
909+
| [`RsaPublicKey\|Ed25519PublicKey\|Secp256k1PublicKey`][keys] | Peer PublicKey |
910910

911911
#### Example
912912

@@ -929,7 +929,7 @@ Set known `peerId`. This can include its Public Key.
929929
| Name | Type | Description |
930930
|------|------|-------------|
931931
| peerId | [`PeerId`][peer-id] | peerId to set |
932-
| publicKey | [`RsaPublicKey|Ed25519PublicKey|Secp256k1PublicKey`][keys] | peer's public key |
932+
| publicKey | [`RsaPublicKey\|Ed25519PublicKey\|Secp256k1PublicKey`][keys] | peer's public key |
933933

934934
#### Returns
935935

@@ -1884,4 +1884,4 @@ This event will be triggered anytime we are disconnected from another peer, rega
18841884
[connection]: https://github.com/libp2p/js-interfaces/tree/master/src/connection
18851885
[multiaddr]: https://github.com/multiformats/js-multiaddr
18861886
[peer-id]: https://github.com/libp2p/js-peer-id
1887-
[keys]: https://github.com/libp2p/js-libp2p-crypto/tree/master/src/keys
1887+
[keys]: https://github.com/libp2p/js-libp2p-crypto/tree/master/src/keys

0 commit comments

Comments
 (0)
Please sign in to comment.