Skip to content

Commit b7baaeb

Browse files
authored
docs(iroh): fix docstring for ProtocolHandler (#3558)
Small documentation fix for `ProtocolHandler::accept()`
1 parent 4ed700e commit b7baaeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iroh/src/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ pub trait ProtocolHandler: Send + Sync + std::fmt::Debug + 'static {
170170

171171
/// Handle an incoming connection.
172172
///
173-
/// Can be implemented as `async fn accept(&self, connection: Connection) -> Result<Connection>`.
173+
/// Can be implemented as `async fn accept(&self, connection: Connection) -> Result<()>`.
174174
///
175175
/// The returned future runs on a freshly spawned tokio task so it can be long-running.
176176
///

0 commit comments

Comments
 (0)