@@ -1338,7 +1338,7 @@ drop_suffix = |haystack, suffix|
1338
1338
##
1339
1339
## This function is useful for things like [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
1340
1340
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
1341
- ## know in advance that you're dealing with a hardcoded string containing only ASCII characters.
1341
+ ## where you know in advance that you're dealing with a hardcoded string containing only ASCII characters.
1342
1342
## It has better performance than lowercasing operations which take Unicode into account.
1343
1343
##
1344
1344
## That said, strings received from user input can always contain
@@ -1350,7 +1350,7 @@ drop_suffix = |haystack, suffix|
1350
1350
## for Unicode capitalization that can be upgraded independently from the language's builtins.
1351
1351
##
1352
1352
## To do a case-insensitive comparison of the ASCII characters in a string,
1353
- ## use [Str.caseless_ascii_equals].
1353
+ ## you can use [Str.caseless_ascii_equals].
1354
1354
with_ascii_lowercased : Str -> Str
1355
1355
1356
1356
expect Str . with_ascii_lowercased ("CAF É") == " cafÉ"
@@ -1365,7 +1365,7 @@ expect Str.with_ascii_lowercased("CAFÉ") == "cafÉ"
1365
1365
## This function is useful for things like
1366
1366
## [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
1367
1367
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
1368
- ## know in advance that you're dealing with a hardcoded string containing only ASCII characters.
1368
+ ## where you know in advance that you're dealing with a hardcoded string containing only ASCII characters.
1369
1369
## It has better performance than lowercasing operations which take Unicode into account.
1370
1370
##
1371
1371
## That said, strings received from user input can always contain
@@ -1378,7 +1378,7 @@ expect Str.with_ascii_lowercased("CAFÉ") == "cafÉ"
1378
1378
## that can be upgraded independently from the language's builtins.
1379
1379
##
1380
1380
## To do a case-insensitive comparison of the ASCII characters in a string,
1381
- ## use [Str.caseless_ascii_equals].
1381
+ ## you can use [Str.caseless_ascii_equals].
1382
1382
with_ascii_uppercased : Str -> Str
1383
1383
1384
1384
expect Str . with_ascii_uppercased ("caf é") == " CAFé"
@@ -1412,8 +1412,8 @@ expect Str.with_ascii_uppercased("café") == "CAFé"
1412
1412
## so we have separate [`unicode` package](https://github.com/roc-lang/unicode)
1413
1413
## for Unicode capitalization that can be upgraded independently from the language's builtins.
1414
1414
##
1415
- ## To convert a string's ASCII characters to uppercase or lowercase, use [Str.with_ascii_uppercased]
1416
- ## and [Str.with_ascii_lowercased].
1415
+ ## To convert a string's ASCII characters to uppercase or lowercase, you can use [Str.with_ascii_uppercased]
1416
+ ## or [Str.with_ascii_lowercased].
1417
1417
caseless_ascii_equals : Str , Str -> Bool
1418
1418
1419
1419
expect Str . caseless_ascii_equals ("caf é", " CAFé" )
0 commit comments