summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-09-25 00:10:12 +0200
committerAraq <rumpf_a@web.de>2018-09-25 00:10:21 +0200
commit8029a649ba2cd394cad1749c017d5758cdcdbd4c (patch)
tree3fa48d4eebd75af41549dd3d7d97ea0dac41b243
parent5a3ed8f2baacd4a48aa909dcd6d35f60b16171c6 (diff)
downloadNim-8029a649ba2cd394cad1749c017d5758cdcdbd4c.tar.gz
math.nim: document what to use instead of 'fmod'
-rw-r--r--compiler/docgen.nim2
-rw-r--r--lib/pure/math.nim4
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 83dd5de2a..4e36b72e5 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -304,7 +304,7 @@ proc nodeToHighlightedHtml(d: PDoc; n: PNode; result: var Rope; renderFlags: TRe
           d.target == outHtml:
         let external = externalDep(d, s.owner)
         result.addf "<a href=\"$1#$2\"><span class=\"Identifier\">$3</span></a>",
-          [rope changeFileExt(external, "html").string, rope literal,
+          [rope changeFileExt(external, "html"), rope literal,
            rope(esc(d.target, literal))]
       else:
         dispA(d.conf, result, "<span class=\"Identifier\">$1</span>",
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index bc804eb86..909aa11b7 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -383,8 +383,8 @@ when not defined(JS): # C
       ## .. code-block:: nim
       ##  echo trunc(PI) # 3.0
 
-  proc fmod*(x, y: float32): float32 {.deprecated, importc: "fmodf", header: "<math.h>".}
-  proc fmod*(x, y: float64): float64 {.deprecated, importc: "fmod", header: "<math.h>".}
+  proc fmod*(x, y: float32): float32 {.deprecated: "use mod instead", importc: "fmodf", header: "<math.h>".}
+  proc fmod*(x, y: float64): float64 {.deprecated: "use mod instead", importc: "fmod", header: "<math.h>".}
     ## Computes the remainder of `x` divided by `y`
     ##
     ## .. code-block:: nim