summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorDanil Yarantsev <tiberiumk12@gmail.com>2021-03-29 14:06:23 +0300
committerGitHub <noreply@github.com>2021-03-29 13:06:23 +0200
commit89e0e0f27fe937b0eb7386f6f49f4b66f1d27edb (patch)
tree8611ee99653e4a1e607c0a9e32b851424a9f6012 /lib/pure
parentc6dc9c02551e93fd4c53e48fd7fa8a0df7843267 (diff)
downloadNim-89e0e0f27fe937b0eb7386f6f49f4b66f1d27edb.tar.gz
Small doc fixes in net (#17566)
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/net.nim6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim
index ca109dc22..9be9c6acb 100644
--- a/lib/pure/net.nim
+++ b/lib/pure/net.nim
@@ -1427,7 +1427,7 @@ proc recv*(socket: Socket, data: var string, size: int, timeout = -1,
            flags = {SocketFlag.SafeDisconn}): int =
   ## Higher-level version of `recv`.
   ##
-  ## Reads **up to** `size` bytes from `socket` into `buf`.
+  ## Reads **up to** `size` bytes from `socket` into `data`.
   ##
   ## For buffered sockets this function will attempt to read all the requested
   ## data. It will read this data in `BufferSize` chunks.
@@ -1444,8 +1444,6 @@ proc recv*(socket: Socket, data: var string, size: int, timeout = -1,
   ## A timeout may be specified in milliseconds, if enough data is not received
   ## within the time specified a TimeoutError exception will be raised.
   ##
-  ## **Note**: `data` must be initialised.
-  ##
   ## .. warning:: Only the `SafeDisconn` flag is currently supported.
   data.setLen(size)
   result =
@@ -1464,7 +1462,7 @@ proc recv*(socket: Socket, size: int, timeout = -1,
            flags = {SocketFlag.SafeDisconn}): string {.inline.} =
   ## Higher-level version of `recv` which returns a string.
   ##
-  ## Reads **up to** `size` bytes from `socket` into `buf`.
+  ## Reads **up to** `size` bytes from `socket` into the result.
   ##
   ## For buffered sockets this function will attempt to read all the requested
   ## data. It will read this data in `BufferSize` chunks.
Kartik K. Agaram <vc@akkartik.com> 2017-03-08 19:02:59 -0800 committer Kartik K. Agaram <vc@akkartik.com> 2017-03-08 19:02:59 -0800 3764 - better colors for cross-links' href='/akkartik/mu/commit/html/http-server.mu.html?h=main&id=4a39d12d4568f76ebf45b34cec722d8e0bcf1207'>4a39d12d ^
f8a4a457 ^
e5c11a51 ^
9e751bb8 ^
f8a4a457 ^





e5c11a51 ^






















f8a4a457 ^


e5c11a51 ^
f8a4a457 ^
204dae92 ^








97eb971b ^
204dae92 ^




6c52e24e ^

124c6764 ^
204dae92 ^
201458e3 ^
204dae92 ^







f8a4a457 ^



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