summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2019-06-24 12:52:54 +0200
committernarimiran <narimiran@disroot.org>2019-06-24 12:52:54 +0200
commit436f57065197bee86c9539b75de3a73e5bda3f10 (patch)
treeb81adc79676e632242616dc83d5d04e2f7b0cfd2 /lib
parente90d91f0e463e870c49a7558d216fff03a581949 (diff)
downloadNim-436f57065197bee86c9539b75de3a73e5bda3f10.tar.gz
[documentation] fix #4630, document unsupported functions for JS
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/math.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index 119087107..248653a76 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -581,13 +581,19 @@ when not defined(JS): # C
     proc erf*(x: float32): float32 {.importc: "erff", header: "<math.h>".}
     proc erf*(x: float64): float64 {.importc: "erf", header: "<math.h>".}
       ## Computes the `error function <https://en.wikipedia.org/wiki/Error_function>`_ for ``x``.
+      ##
+      ## Note: Not available for JS backend.
     proc erfc*(x: float32): float32 {.importc: "erfcf", header: "<math.h>".}
     proc erfc*(x: float64): float64 {.importc: "erfc", header: "<math.h>".}
       ## Computes the `complementary error function <https://en.wikipedia.org/wiki/Error_function#Complementary_error_function>`_ for ``x``.
+      ##
+      ## Note: Not available for JS backend.
     proc gamma*(x: float32): float32 {.importc: "tgammaf", header: "<math.h>".}
     proc gamma*(x: float64): float64 {.importc: "tgamma", header: "<math.h>".}
       ## Computes the the `gamma function <https://en.wikipedia.org/wiki/Gamma_function>`_ for ``x``.
       ##
+      ## Note: Not available for JS backend.
+      ##
       ## See also:
       ## * `lgamma proc <#lgamma,float64>`_ for a natural log of gamma function
       ##
@@ -605,6 +611,8 @@ when not defined(JS): # C
     proc lgamma*(x: float64): float64 {.importc: "lgamma", header: "<math.h>".}
       ## Computes the natural log of the gamma function for ``x``.
       ##
+      ## Note: Not available for JS backend.
+      ##
       ## See also:
       ## * `gamma proc <#gamma,float64>`_ for gamma function
       ##