diff options
author | konqoro <capoiosct@gmail.com> | 2018-02-01 15:02:32 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-02-01 14:02:32 +0100 |
commit | 90c1edff8bad05dc21c0c5a79fc026cac2b5fe4c (patch) | |
tree | 2d99d1bb7fe2be7035dc330859849a9f7ca59d0e /doc/manual | |
parent | 60c7bbc8b7e75951b952a34051a8445592a68fc4 (diff) | |
download | Nim-90c1edff8bad05dc21c0c5a79fc026cac2b5fe4c.tar.gz |
Fix the names of the float checks pragmas. (#7170)
Diffstat (limited to 'doc/manual')
-rw-r--r-- | doc/manual/types.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/types.txt b/doc/manual/types.txt index 1477995dd..8a90dee05 100644 --- a/doc/manual/types.txt +++ b/doc/manual/types.txt @@ -181,11 +181,11 @@ Nim exceptions: `FloatInvalidOpError`:idx:, `FloatDivByZeroError`:idx:, and `FloatInexactError`:idx:. These exceptions inherit from the `FloatingPointError`:idx: base class. -Nim provides the pragmas `NaNChecks`:idx: and `InfChecks`:idx: to control +Nim provides the pragmas `nanChecks`:idx: and `infChecks`:idx: to control whether the IEEE exceptions are ignored or trap a Nim exception: .. code-block:: nim - {.NanChecks: on, InfChecks: on.} + {.nanChecks: on, infChecks: on.} var a = 1.0 var b = 0.0 echo b / b # raises FloatInvalidOpError @@ -195,7 +195,7 @@ In the current implementation ``FloatDivByZeroError`` and ``FloatInexactError`` are never raised. ``FloatOverflowError`` is raised instead of ``FloatDivByZeroError``. There is also a `floatChecks`:idx: pragma that is a short-cut for the -combination of ``NaNChecks`` and ``InfChecks`` pragmas. ``floatChecks`` are +combination of ``nanChecks`` and ``infChecks`` pragmas. ``floatChecks`` are turned off as default. The only operations that are affected by the ``floatChecks`` pragma are |