From 23deabc87e44828ed3e7c9d4836539faaf259ef7 Mon Sep 17 00:00:00 2001 From: david-perez Date: Mon, 14 Feb 2022 19:00:28 +0100 Subject: [PATCH] docs: `length` trait counts number of Unicode scalar values for strings Since Smithy defines string shapes to be UTF-8 encoded, it is more correct for the spec to explicitly say the `length` trait counts the number of Unicode scalar values when applied to strings. --- docs/source/1.0/spec/core/constraint-traits.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/1.0/spec/core/constraint-traits.rst b/docs/source/1.0/spec/core/constraint-traits.rst index 8b216000547..8db70cc92fe 100644 --- a/docs/source/1.0/spec/core/constraint-traits.rst +++ b/docs/source/1.0/spec/core/constraint-traits.rst @@ -360,7 +360,7 @@ Shape Length constrains list The number of members set The number of members map The number of key-value pairs -string The number of Unicode code points +string The number of `Unicode scalar values `__ blob The size of the blob in bytes =========== =====================================