Skip to content

Commit d09ef18

Browse files
authored
Merge pull request #7551 from roc-lang/more-str-tweaks
Clarify some Str docs
2 parents b52e3d0 + aea5480 commit d09ef18

File tree

1 file changed

+6
-6
lines changed
  • crates/compiler/builtins/roc

1 file changed

+6
-6
lines changed

crates/compiler/builtins/roc/Str.roc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,8 +1336,8 @@ drop_suffix = |haystack, suffix|
13361336
## expect "CAFÉ".with_ascii_lowercased() == "cafÉ"
13371337
## ```
13381338
##
1339-
## This function is useful for things like [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
1340-
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
1339+
## This function is useful for things like [command-line flags](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
1340+
## and [environment variable names](https://en.wikipedia.org/wiki/Environment_variable)
13411341
## where you know in advance that you're dealing with a string containing only ASCII characters.
13421342
## It has better performance than lowercasing operations which take Unicode into account.
13431343
##
@@ -1363,8 +1363,8 @@ expect Str.with_ascii_lowercased("CAFÉ") == "cafÉ"
13631363
## ```
13641364
##
13651365
## This function is useful for things like
1366-
## [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
1367-
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
1366+
## [command-line flags](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
1367+
## and [environment variable names](https://en.wikipedia.org/wiki/Environment_variable)
13681368
## where you know in advance that you're dealing with a string containing only ASCII characters.
13691369
## It has better performance than lowercasing operations which take Unicode into account.
13701370
##
@@ -1399,8 +1399,8 @@ expect Str.with_ascii_uppercased("café") == "CAFé"
13991399
## (`é`) is the same in both strings. The second call returns `False`because
14001400
## `é` and `É` are not ASCII characters, and they are different.
14011401
##
1402-
## This function is useful for things like [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
1403-
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
1402+
## This function is useful for things like [command-line flags](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
1403+
## and [environment variable names](https://en.wikipedia.org/wiki/Environment_variable)
14041404
## where you know in advance that you're dealing with a string containing only ASCII characters.
14051405
## It has better performance than lowercasing operations which take Unicode into account.
14061406
##

0 commit comments

Comments
 (0)