Skip to content

Commit c0bfe4b

Browse files
committed
Fixed description for how numeric reduction affects duplicate map keys.
1 parent 902fc50 commit c0bfe4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

draft-mcnally-deterministic-cbor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ dCBOR implementations that support floating point numbers:
151151

152152
This also means that the three representations of a zero number in CBOR (`0`, `0.0`, `-0.0` in diagnostic notation) are all reduced to the basic integer `0` (with preferred encoding `0x00`).
153153

154-
Note that this reduction means some valid CDE/CBOR maps are not valid dCBOR maps, as numeric reduction can result in duplicate keys, for example, this is an invalid dCBOR map:
154+
Note that numeric reduction means that some valid CDE/CBOR maps are not valid dCBOR maps, as numeric reduction can result in duplicate keys. For example, the following is a valid CBOR/CDE map, but would be rejected as invalid by a dCBOR decoder because the value `10.0` is not a valid dCBOR encoding:
155155

156156
~~~ cbor-diag
157157
{

0 commit comments

Comments
 (0)