Add warning on Bytes.inStr

This commit is contained in:
Richard Feldman 2021-04-26 01:04:37 -04:00
parent f56636ac7e
commit 72d5cc6351

View file

@ -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"