mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
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:
parent
d09ef18cd7
commit
3e4a3027e6
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue