Skip to content

Commit

Permalink
docs: update connection.newStream return value (#2630)
Browse files Browse the repository at this point in the history
Co-authored-by: Chad Nehemiah <[email protected]>
  • Loading branch information
dozyio and maschad authored Jul 21, 2024
1 parent f7a94a2 commit c164e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interface/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ export interface Libp2p<T extends ServiceMap = ServiceMap> extends Startable, Ty
* const conn = await libp2p.dial(remotePeerId)
*
* // create a new stream within the connection
* const { stream, protocol } = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
* const stream = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
*
* // protocol negotiated: 'echo/1.0.0' means that the other party only supports the older version
*
Expand Down

0 comments on commit c164e2e

Please sign in to comment.