From e96cb9e39405dbcb965af10a5d9bd469d887bcdd Mon Sep 17 00:00:00 2001 From: carlossanlop Date: Mon, 19 Apr 2021 12:36:19 -0700 Subject: [PATCH] Cbor docs - Fix SA1121: Use built-in type alias --- .../src/System/Formats/Cbor/Reader/CborReader.Map.cs | 2 +- .../src/System/Formats/Cbor/Writer/CborWriter.Map.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.Map.cs b/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.Map.cs index 0fe7125e998423..ef06ba4ba334c3 100644 --- a/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.Map.cs +++ b/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.Map.cs @@ -21,7 +21,7 @@ public partial class CborReader /// The next value uses a CBOR encoding that is not valid under the current conformance mode. /// /// Map contents are consumed as if they were arrays twice the length of the map's declared size. - /// For instance, a map of size 1 containing a key of type with a value of type + /// For instance, a map of size 1 containing a key of type with a value of type /// must be consumed by successive calls to and . /// It is up to the caller to keep track of whether the next value is a key or a value. /// Fundamentally, this is a technical restriction stemming from the fact that CBOR allows keys of arbitrary type, diff --git a/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Writer/CborWriter.Map.cs b/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Writer/CborWriter.Map.cs index ccdedda9357cc9..58a6d6ecca5cf9 100644 --- a/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Writer/CborWriter.Map.cs +++ b/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Writer/CborWriter.Map.cs @@ -26,7 +26,7 @@ public partial class CborWriter /// In canonical conformance modes, the writer will reject indefinite-length writes unless /// the flag is enabled. /// Map contents are written as if arrays twice the length of the map's declared size. - /// For instance, a map of size 1 containing a key of type with a value of type string must be written + /// For instance, a map of size 1 containing a key of type with a value of type string must be written /// by successive calls to and . /// It is up to the caller to keep track of whether the next call is a key or a value. /// Fundamentally, this is a technical restriction stemming from the fact that CBOR allows keys of any type,