Skip to content

Commit

Permalink
improved wording
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberphone committed Aug 1, 2024
1 parent 9615e77 commit 315f48a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build/document-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ <h3 id='toc'>Table of Contents</h3>
<p>
By default the CBOR.js implementation suports <kdb>NaN</kdb>,
<kbd>Infinity</kbd>, and <kbd>-Infinity</kbd>.
In case these variants of <kbd>Number</kbd> are not applicable to the application
in question, they can be &quot;outlawed&quot; by setting the <i>global property</i>
<kbd>CBOR.disableInvalidFloats</kbd> to <kdb>true</kdb>.
This setting affects both encoding and decoding.
In case these variants of <kbd>Number</kbd> are not applicable for the application
in question, they can be &quot;outlawed&quot; (causing an exception if encountered),
by setting the <i>global property</i> <kbd>CBOR.disableInvalidFloats</kbd>
to <kdb>true</kdb>. This setting affects both encoding and decoding.
</p>
${DIAGNOSTIC_NOTATION}
Creating CBOR data in diagnostic notation (as described in section 8 of RFC&nbsp;8949),
Expand Down
8 changes: 4 additions & 4 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1069,10 +1069,10 @@ <h5 id='jsnumbers.fp'>6.2.&nbsp;&nbsp;Floating Point Numbers</h5>
<p>
By default the CBOR.js implementation suports <kdb>NaN</kdb>,
<kbd>Infinity</kbd>, and <kbd>-Infinity</kbd>.
In case these variants of <kbd>Number</kbd> are not applicable to the application
in question, they can be &quot;outlawed&quot; by setting the <i>global property</i>
<kbd>CBOR.disableInvalidFloats</kbd> to <kdb>true</kdb>.
This setting affects both encoding and decoding.
In case these variants of <kbd>Number</kbd> are not applicable for the application
in question, they can be &quot;outlawed&quot; (causing an exception if encountered),
by setting the <i>global property</i> <kbd>CBOR.disableInvalidFloats</kbd>
to <kdb>true</kdb>. This setting affects both encoding and decoding.
</p>
<h3 id='main.diagnostic'>7.&nbsp;&nbsp;Diagnostic Notation</h3>

Expand Down

0 comments on commit 315f48a

Please sign in to comment.