moonbitlang / moonbit-docs

The docs of MoonBit programming language
https://moonbitlang.com/docs/syntax
871 stars 40 forks source link

docs: Update string and char documentation for UTF-16 encoding #209

Closed qazxcdswe123 closed 1 month ago

peter-jerry-ye commented 1 month ago

Why do users need to know if it's little endian or big endian? You can not tell them apart until you apply the str.to_bytes() operation. This information should be added to the comment of String::to_bytes instead of here.