Skip to content

Commit

Permalink
docs: length trait counts number of Unicode scalar values for strings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
david-perez authored and Michael Dowling committed Feb 21, 2022
1 parent 58dad5b commit 9cd4e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/1.0/spec/core/constraint-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://www.unicode.org/glossary/#unicode_scalar_value>`__
blob The size of the blob in bytes
=========== =====================================

Expand Down

0 comments on commit 9cd4e10

Please sign in to comment.