mirror of
https://github.com/janet-lang/janet
synced 2025-05-08 02:14:14 +00:00
Fix formatting.
This commit is contained in:
parent
93bd2c11fa
commit
caa6576719
@ -244,8 +244,7 @@ JanetAsyncStatus net_machine_read(JanetListenerState *s, JanetAsyncEvent event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
case JANET_ASYNC_EVENT_USER:
|
case JANET_ASYNC_EVENT_USER: {
|
||||||
{
|
|
||||||
state->flags = 0;
|
state->flags = 0;
|
||||||
int32_t chunk_size = state->bytes_left > JANET_NET_CHUNKSIZE ? JANET_NET_CHUNKSIZE : state->bytes_left;
|
int32_t chunk_size = state->bytes_left > JANET_NET_CHUNKSIZE ? JANET_NET_CHUNKSIZE : state->bytes_left;
|
||||||
state->wbuf.len = (ULONG) chunk_size;
|
state->wbuf.len = (ULONG) chunk_size;
|
||||||
@ -1071,7 +1070,7 @@ static const JanetReg net_cfuns[] = {
|
|||||||
JDOC("(net/address host port &opt type)\n\n"
|
JDOC("(net/address host port &opt type)\n\n"
|
||||||
"Look up the connection information for a given hostname, port, and connection type. Returns "
|
"Look up the connection information for a given hostname, port, and connection type. Returns "
|
||||||
"a handle that can be used to send datagrams over network without establishing a connection. "
|
"a handle that can be used to send datagrams over network without establishing a connection. "
|
||||||
"On Posix platforms, you can use :unix for host to connet to a unix domain socket, where the name is "
|
"On Posix platforms, you can use :unix for host to connect to a unix domain socket, where the name is "
|
||||||
"given in the port argument. On Linux, abstract "
|
"given in the port argument. On Linux, abstract "
|
||||||
"unix domain sockets are specified with a leading '@' character in port.")
|
"unix domain sockets are specified with a leading '@' character in port.")
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user