File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/compiler/builtins/roc Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1333,7 +1333,7 @@ drop_suffix = |haystack, suffix|
13331333## Non-ASCII characters are left unmodified. For example:
13341334##
13351335## ```roc
1336- ## expect "CAFÉ" .with_ascii_lowercased() == "cafÉ"
1336+ ## expect Str .with_ascii_lowercased("CAFÉ" ) == "cafÉ"
13371337## ```
13381338##
13391339## 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É"
13591359## Non-ASCII characters are left unmodified. For example:
13601360##
13611361## ```roc
1362- ## expect "café" .with_ascii_uppercased() == "CAFé"
1362+ ## expect Str .with_ascii_uppercased("café" ) == "CAFé"
13631363## ```
13641364##
13651365## This function is useful for things like
@@ -1389,9 +1389,9 @@ expect Str.with_ascii_uppercased("café") == "CAFé"
13891389## including capitalization. For example:
13901390##
13911391## ```roc
1392- ## expect "café" .caseless_ascii_equals("CAFé")
1392+ ## expect Str .caseless_ascii_equals("café", "CAFé")
13931393##
1394- ## expect !"café" .caseless_ascii_equals("CAFÉ")
1394+ ## expect !Str .caseless_ascii_equals("café", "CAFÉ")
13951395## ```
13961396##
13971397## The first call returns `True` because all the ASCII characters are the same
You can’t perform that action at this time.
0 commit comments