Skip to content

Commit c164e2e

Browse files
dozyiomaschad
andauthored
docs: update connection.newStream return value (#2630)
Co-authored-by: Chad Nehemiah <[email protected]>
1 parent f7a94a2 commit c164e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/interface/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ export interface Libp2p<T extends ServiceMap = ServiceMap> extends Startable, Ty
527527
* const conn = await libp2p.dial(remotePeerId)
528528
*
529529
* // create a new stream within the connection
530-
* const { stream, protocol } = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
530+
* const stream = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
531531
*
532532
* // protocol negotiated: 'echo/1.0.0' means that the other party only supports the older version
533533
*

0 commit comments

Comments
 (0)