File tree 1 file changed +4
-4
lines changed
crates/compiler/builtins/roc
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|
1333
1333
## Non-ASCII characters are left unmodified. For example:
1334
1334
##
1335
1335
## ```roc
1336
- ## expect "CAFÉ" .with_ascii_lowercased() == "cafÉ"
1336
+ ## expect Str .with_ascii_lowercased("CAFÉ" ) == "cafÉ"
1337
1337
## ```
1338
1338
##
1339
1339
## 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É"
1359
1359
## Non-ASCII characters are left unmodified. For example:
1360
1360
##
1361
1361
## ```roc
1362
- ## expect "café" .with_ascii_uppercased() == "CAFé"
1362
+ ## expect Str .with_ascii_uppercased("café" ) == "CAFé"
1363
1363
## ```
1364
1364
##
1365
1365
## This function is useful for things like
@@ -1389,9 +1389,9 @@ expect Str.with_ascii_uppercased("café") == "CAFé"
1389
1389
## including capitalization. For example:
1390
1390
##
1391
1391
## ```roc
1392
- ## expect "café" .caseless_ascii_equals("CAFé")
1392
+ ## expect Str .caseless_ascii_equals("café", "CAFé")
1393
1393
##
1394
- ## expect !"café" .caseless_ascii_equals("CAFÉ")
1394
+ ## expect !Str .caseless_ascii_equals("café", "CAFÉ")
1395
1395
## ```
1396
1396
##
1397
1397
## 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