Have Str examples not use static dispatch (yet!)

This syntax doesn't exist yet, but we can revert this once it does! 😄

Signed-off-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
Richard Feldman 2025-01-25 14:48:26 -05:00
parent d09ef18cd7
commit 3e4a3027e6
No known key found for this signature in database

View file

@ -1333,7 +1333,7 @@ drop_suffix = |haystack, suffix|
## Non-ASCII characters are left unmodified. For example:
##
## ```roc
## expect "CAFÉ".with_ascii_lowercased() == "cafÉ"
## expect Str.with_ascii_lowercased("CAFÉ") == "cafÉ"
## ```
##
## This function is useful for things like [command-line flags](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
@ -1359,7 +1359,7 @@ expect Str.with_ascii_lowercased("CAFÉ") == "cafÉ"
## Non-ASCII characters are left unmodified. For example:
##
## ```roc
## expect "café".with_ascii_uppercased() == "CAFé"
## expect Str.with_ascii_uppercased("café") == "CAFé"
## ```
##
## This function is useful for things like
@ -1389,9 +1389,9 @@ expect Str.with_ascii_uppercased("café") == "CAFé"
## including capitalization. For example:
##
## ```roc
## expect "café".caseless_ascii_equals("CAFé")
## expect Str.caseless_ascii_equals("café", "CAFé")
##
## expect !"café".caseless_ascii_equals("CAFÉ")
## expect !Str.caseless_ascii_equals("café", "CAFÉ")
## ```
##
## The first call returns `True` because all the ASCII characters are the same