mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Fix some Str docs
This commit is contained in:
parent
d9774109f1
commit
c23e23abf5
1 changed files with 3 additions and 3 deletions
|
@ -145,17 +145,17 @@ Utf8Problem : { byteIndex : Nat, problem : Utf8ByteProblem }
|
|||
## expect Str.isEmpty "" == Bool.true
|
||||
isEmpty : Str -> Bool
|
||||
|
||||
## Combines two strings.
|
||||
## Concatenates two strings together.
|
||||
##
|
||||
## expect Str.concat "ab" "cd" == "abcd"
|
||||
## expect Str.concat "hello" "" == "hello"
|
||||
## expect Str.concat "" "" == ""
|
||||
concat : Str, Str -> Str
|
||||
|
||||
## Returns a string of the specified capacity without any content
|
||||
## Returns a string of the specified capacity without any content.
|
||||
withCapacity : Nat -> Str
|
||||
|
||||
## Combines a list of strings into a single strings, with a separator
|
||||
## Combines a [List] of strings into a single string, with a separator
|
||||
## string in between each.
|
||||
##
|
||||
## expect Str.joinWith ["one", "two", "three"] ", " == "one, two, three"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue