Skip to content

Commit a23a46f

Browse files
authored
docs: update quic example to fix typo (#1)
Updates symbol name.
1 parent 8325c09 commit a23a46f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ const QUIC_V0_OR_V1 = or(_QUIC, _QUICV1)
448448
* import { multiaddr } from '@multiformats/multiaddr'
449449
* import { QUIC } from '@multiformats/multiaddr-matcher'
450450
*
451-
* UDP.matches(multiaddr('/ip4/123.123.123.123/udp/1234/quic')) // true
451+
* QUIC.matches(multiaddr('/ip4/123.123.123.123/udp/1234/quic')) // true
452452
* ```
453453
*/
454454
export const QUIC = fmt(_QUIC)
@@ -460,9 +460,9 @@ export const QUIC = fmt(_QUIC)
460460
*
461461
* ```ts
462462
* import { multiaddr } from '@multiformats/multiaddr'
463-
* import { QUIC } from '@multiformats/multiaddr-matcher'
463+
* import { QUICV1 } from '@multiformats/multiaddr-matcher'
464464
*
465-
* UDP.matches(multiaddr('/ip4/123.123.123.123/udp/1234/quic-v1')) // true
465+
* QUICV1.matches(multiaddr('/ip4/123.123.123.123/udp/1234/quic-v1')) // true
466466
* ```
467467
*/
468468
export const QUICV1 = fmt(_QUICV1)

0 commit comments

Comments
 (0)