picoev: fix documentation (#24811)

This commit is contained in:
Laurent Cheylus 2025-06-29 11:59:14 +02:00 committed by GitHub
parent b909e2eb37
commit 6cbffd53ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 50 additions and 44 deletions

View file

@ -87,7 +87,7 @@ fn fatal_socket_error(fd int) bool {
return true
}
// listen creates a listening tcp socket and returns its file descriptor
// listen creates a listening tcp socket and returns its file descriptor.
fn listen(config Config) !int {
// not using the `net` modules sockets, because not all socket options are defined
fd := C.socket(config.family, net.SocketType.tcp, 0)