diff options
Diffstat (limited to 'lib/pure/includes')
-rw-r--r-- | lib/pure/includes/oserr.nim | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/pure/includes/oserr.nim b/lib/pure/includes/oserr.nim index 94891ccba..b0740cbe6 100644 --- a/lib/pure/includes/oserr.nim +++ b/lib/pure/includes/oserr.nim @@ -102,11 +102,10 @@ proc osLastError*(): OSErrorCode {.sideEffect.} = ## OS call failed. The `OSErrorMsg` procedure can then be used to convert ## this code into a string. ## - ## **Warning**: - ## The behaviour of this procedure varies between Windows and POSIX systems. - ## On Windows some OS calls can reset the error code to `0` causing this - ## procedure to return `0`. It is therefore advised to call this procedure - ## immediately after an OS call fails. On POSIX systems this is not a problem. + ## .. warning:: The behaviour of this procedure varies between Windows and POSIX systems. + ## On Windows some OS calls can reset the error code to `0` causing this + ## procedure to return `0`. It is therefore advised to call this procedure + ## immediately after an OS call fails. On POSIX systems this is not a problem. ## ## See also: ## * `osErrorMsg proc <#osErrorMsg,OSErrorCode>`_ |