summary refs log tree commit diff stats
path: root/lib/std
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/std
parenteb07a5a75b63110642c5ce6f9126c9c8af231a64 (diff)
downloadNim-9819fb21d8db818c0b3027d4e6ba58dc550b77c0.tar.gz
Use `.. warning::` (#17320)
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/jsfetch.nim2
-rw-r--r--lib/std/jsformdata.nim2
-rw-r--r--lib/std/jsheaders.nim2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/jsfetch.nim b/lib/std/jsfetch.nim
index 2ff894985..36bc772d5 100644
--- a/lib/std/jsfetch.nim
+++ b/lib/std/jsfetch.nim
@@ -84,7 +84,7 @@ when defined(nimExperimentalJsfetch) or defined(nimdoc):
   proc unsafeNewFetchOptions*(metod, body, mode, credentials, cache, referrerPolicy: cstring;
       keepalive: bool; redirect = "follow".cstring; referrer = "client".cstring; integrity = "".cstring): FetchOptions {.importjs:
       "{method: #, body: #, mode: #, credentials: #, cache: #, referrerPolicy: #, keepalive: #, redirect: #, referrer: #, integrity: #}".}
-    ## .. Warning:: Unsafe `newfetchOptions`.
+    ## .. warning:: Unsafe `newfetchOptions`.
 
   func newfetchOptions*(metod: HttpMethod; body: cstring;
       mode: FetchModes; credentials: FetchCredentials; cache: FetchCaches; referrerPolicy: FetchReferrerPolicies;
diff --git a/lib/std/jsformdata.nim b/lib/std/jsformdata.nim
index 2728fbdd0..120f8742d 100644
--- a/lib/std/jsformdata.nim
+++ b/lib/std/jsformdata.nim
@@ -17,7 +17,7 @@ func add*(self: FormData; name: cstring; value: SomeNumber | bool | cstring, fil
 func delete*(self: FormData; name: cstring) {.importjs: "#.$1(#)".}
   ## https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete
   ##
-  ## .. Warning:: Deletes *all items* with the same key name.
+  ## .. warning:: Deletes *all items* with the same key name.
 
 func getAll*(self: FormData; name: cstring): seq[cstring] {.importjs: "#.$1(#)".}
   ## https://developer.mozilla.org/en-US/docs/Web/API/FormData/getAll
diff --git a/lib/std/jsheaders.nim b/lib/std/jsheaders.nim
index a67e54ef7..6fd3b3468 100644
--- a/lib/std/jsheaders.nim
+++ b/lib/std/jsheaders.nim
@@ -14,7 +14,7 @@ func add*(self: Headers; key: cstring; value: cstring) {.importjs: "#.append(#,
 func delete*(self: Headers; key: cstring) {.importjs: "#.$1(#)".}
   ## https://developer.mozilla.org/en-US/docs/Web/API/Headers/delete
   ##
-  ## .. Warning:: Delete *all* items with `key` from the headers, including duplicated keys.
+  ## .. warning:: Delete *all* items with `key` from the headers, including duplicated keys.
 
 func hasKey*(self: Headers; key: cstring): bool {.importjs: "#.has(#)".}
   ## https://developer.mozilla.org/en-US/docs/Web/API/Headers/has