Skip to content

Commit 3f09235

Browse files
authored
Merge pull request #7552 from roc-lang/static-dispatch-str-docs
Have Str docs not use static dispatch (yet!)
2 parents d09ef18 + 3e4a302 commit 3f09235

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

crates/compiler/builtins/roc/Str.roc

+4-4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)