From 9819fb21d8db818c0b3027d4e6ba58dc550b77c0 Mon Sep 17 00:00:00 2001 From: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Date: Wed, 10 Mar 2021 19:39:23 +0100 Subject: Use `.. warning::` (#17320) --- lib/pure/nativesockets.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/pure/nativesockets.nim') 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), -- cgit 1.4.1-2-gfad0