Skip to content

Commit

Permalink
More Str docs improvements
Browse files Browse the repository at this point in the history
Noticed a couple more!

Signed-off-by: Richard Feldman <[email protected]>
  • Loading branch information
rtfeldman authored Jan 25, 2025
1 parent 752eca3 commit e7d8035
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/compiler/builtins/roc/Str.roc
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ drop_suffix = |haystack, suffix|
##
## This function is useful for things like [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
## where you know in advance that you're dealing with a hardcoded string containing only ASCII characters.
## where you know in advance that you're dealing with a string containing only ASCII characters.
## It has better performance than lowercasing operations which take Unicode into account.
##
## That said, strings received from user input can always contain
Expand All @@ -1365,7 +1365,7 @@ expect Str.with_ascii_lowercased("CAFÉ") == "cafÉ"
## This function is useful for things like
## [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
## where you know in advance that you're dealing with a hardcoded string containing only ASCII characters.
## where you know in advance that you're dealing with a string containing only ASCII characters.
## It has better performance than lowercasing operations which take Unicode into account.
##
## That said, strings received from user input can always contain
Expand Down Expand Up @@ -1401,7 +1401,7 @@ expect Str.with_ascii_uppercased("café") == "CAFé"
##
## This function is useful for things like [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
## know in advance that you're dealing with a hardcoded string containing only ASCII characters.
## where you know in advance that you're dealing with a string containing only ASCII characters.
## It has better performance than lowercasing operations which take Unicode into account.
##
## That said, strings received from user input can always contain
Expand Down

0 comments on commit e7d8035

Please sign in to comment.