Skip to content

Commit a8e3746

Browse files
committed
add comment about the usage of Arc
1 parent 6c983a7 commit a8e3746

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstd/sys/hermit/net.rs

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ impl Drop for Socket {
3535
}
3636
}
3737

38+
// Arc is used to count the number of used sockets.
39+
// Only if all sockets are released, the drop
40+
// method will close the socket.
3841
#[derive(Clone)]
3942
pub struct TcpStream(Arc<Socket>);
4043

0 commit comments

Comments
 (0)