Skip to content

Commit 565c250

Browse files
authored
Merge pull request #289 from http-rs/fix-connection-docs
Fix upgrade::sender docs
2 parents 3594a2a + 8fb8066 commit 565c250

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/upgrade/sender.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ impl Sender {
1717
Self { sender }
1818
}
1919

20-
/// Send a `Trailer`.
20+
/// Send a `Connection`.
2121
///
22-
/// The channel will be consumed after having sent trailers.
23-
pub async fn send(self, trailers: Connection) {
24-
let _ = self.sender.send(trailers).await;
22+
/// The channel will be consumed after having sent the connection.
23+
pub async fn send(self, conn: Connection) {
24+
let _ = self.sender.send(conn).await;
2525
}
2626
}

0 commit comments

Comments
 (0)