mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Add warning on Bytes.inStr
This commit is contained in:
parent
f56636ac7e
commit
72d5cc6351
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ toUtf16 : Bytes -> Result Utf16 [ BadUtf16 ]*
|
|||
|
||||
## The number of bytes a string uses in memory.
|
||||
##
|
||||
## This is not the same as the "number of characters" in the string; for that
|
||||
## use case, see #Str.countGraphemes instead!
|
||||
##
|
||||
## >>> Bytes.inStr "👩👩👦👦"
|
||||
##
|
||||
## >>> Bytes.inStr "Roc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue