summary refs log tree commit diff stats
path: root/lib/pure/nativesockets.nim
diff options
context:
space:
mode:
authorAndy Davidoff <disruptek@users.noreply.github.com>2020-07-18 10:39:41 -0400
committerGitHub <noreply@github.com>2020-07-18 16:39:41 +0200
commitae358a0c7a5f7b14e5dde259cd6ce02b235985a3 (patch)
tree4c5f3551180be8cda076177a569599b41e1d8a70 /lib/pure/nativesockets.nim
parent169ca37d2628312b5d94d5e90c3271179db87a13 (diff)
downloadNim-ae358a0c7a5f7b14e5dde259cd6ce02b235985a3.tar.gz
fix docs for nativesocket read/write selects (#15010)
The sockets which *cannot* be _[read from or written to]_ will also be removed from ``readfds``.
Diffstat (limited to 'lib/pure/nativesockets.nim')
-rw-r--r--lib/pure/nativesockets.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim
index 35a7396b9..49a1192df 100644
--- a/lib/pure/nativesockets.nim
+++ b/lib/pure/nativesockets.nim
@@ -656,7 +656,7 @@ proc pruneSocketSet(s: var seq[SocketHandle], fd: var TFdSet) =
 proc selectRead*(readfds: var seq[SocketHandle], timeout = 500): int =
   ## When a socket in ``readfds`` is ready to be read from then a non-zero
   ## value will be returned specifying the count of the sockets which can be
-  ## read from. The sockets which can be read from will also be removed
+  ## read from. The sockets which cannot be read from will also be removed
   ## from ``readfds``.
   ##
   ## ``timeout`` is specified in milliseconds and ``-1`` can be specified for
@@ -678,7 +678,7 @@ proc selectWrite*(writefds: var seq[SocketHandle],
                   timeout = 500): int {.tags: [ReadIOEffect].} =
   ## When a socket in ``writefds`` is ready to be written to then a non-zero
   ## value will be returned specifying the count of the sockets which can be
-  ## written to. The sockets which can be written to will also be removed
+  ## written to. The sockets which cannot be written to will also be removed
   ## from ``writefds``.
   ##
   ## ``timeout`` is specified in milliseconds and ``-1`` can be specified for
emfields.nim?h=devel&id=37fe21b64ac348e7412c524a8a6e05d4fe6f877c'>^
6e6c3d2f1 ^





















fe30ec83e ^
6e6c3d2f1 ^





d68181246 ^
6e6c3d2f1 ^






d68181246 ^
6e6c3d2f1 ^




d68181246 ^
6e6c3d2f1 ^







d68181246 ^
6e6c3d2f1 ^

















bebac34f8 ^




6e6c3d2f1 ^


77406dd59 ^
6e6c3d2f1 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164