summary refs log tree commit diff stats
path: root/lib/pure/nativesockets.nim
diff options
context:
space:
mode:
authorkonsumlamm <44230978+konsumlamm@users.noreply.github.com>2021-03-10 19:39:23 +0100
committerGitHub <noreply@github.com>2021-03-10 10:39:23 -0800
commit9819fb21d8db818c0b3027d4e6ba58dc550b77c0 (patch)
treec96be69e439f34b4f191ec5a25ce6ef7b2e0d766 /lib/pure/nativesockets.nim
parenteb07a5a75b63110642c5ce6f9126c9c8af231a64 (diff)
downloadNim-9819fb21d8db818c0b3027d4e6ba58dc550b77c0.tar.gz
Use `.. warning::` (#17320)
Diffstat (limited to 'lib/pure/nativesockets.nim')
-rw-r--r--lib/pure/nativesockets.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim
index 833294239..605f62321 100644
--- a/lib/pure/nativesockets.nim
+++ b/lib/pure/nativesockets.nim
@@ -207,7 +207,7 @@ proc getProtoByName*(name: string): int {.since: (1, 3, 5).} =
     let protoent = winlean.getprotobyname(name.cstring)
   else:
     let protoent = posix.getprotobyname(name.cstring)
-  
+
   if protoent == nil:
     raise newException(OSError, "protocol not found")
 
@@ -280,7 +280,7 @@ proc getAddrInfo*(address: string, port: Port, domain: Domain = AF_INET,
                   protocol: Protocol = IPPROTO_TCP): ptr AddrInfo =
   ##
   ##
-  ## **Warning**: The resulting `ptr AddrInfo` must be freed using `freeAddrInfo`!
+  ## .. warning:: The resulting `ptr AddrInfo` must be freed using `freeAddrInfo`!
   var hints: AddrInfo
   result = nil
   hints.ai_family = toInt(domain)
@@ -492,7 +492,7 @@ proc getAddrString*(sockAddr: ptr SockAddr): string =
 proc getAddrString*(sockAddr: ptr SockAddr, strAddress: var string) =
   ## Stores in `strAddress` the string representation of the address inside
   ## `sockAddr`
-  ## 
+  ##
   ## **Note**
   ## * `strAddress` must be initialized to 46 in length.
   assert(46 == len(strAddress),