math.nim: document what to use instead of 'fmod'
This commit is contained in:
parent
5a3ed8f2ba
commit
8029a649ba
2 changed files with 3 additions and 3 deletions
|
|
@ -304,7 +304,7 @@ proc nodeToHighlightedHtml(d: PDoc; n: PNode; result: var Rope; renderFlags: TRe
|
||||||
d.target == outHtml:
|
d.target == outHtml:
|
||||||
let external = externalDep(d, s.owner)
|
let external = externalDep(d, s.owner)
|
||||||
result.addf "<a href=\"$1#$2\"><span class=\"Identifier\">$3</span></a>",
|
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))]
|
rope(esc(d.target, literal))]
|
||||||
else:
|
else:
|
||||||
dispA(d.conf, result, "<span class=\"Identifier\">$1</span>",
|
dispA(d.conf, result, "<span class=\"Identifier\">$1</span>",
|
||||||
|
|
|
||||||
|
|
@ -383,8 +383,8 @@ when not defined(JS): # C
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
## echo trunc(PI) # 3.0
|
## echo trunc(PI) # 3.0
|
||||||
|
|
||||||
proc fmod*(x, y: float32): float32 {.deprecated, importc: "fmodf", 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, importc: "fmod", 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`
|
## Computes the remainder of `x` divided by `y`
|
||||||
##
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue