Skip to content

Commit ca18169

Browse files
committed
Update the documentation for the optional parameters feature
1 parent 3dbcbba commit ca18169

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ kaos> string.concat("hello", " world")
4949
hello world
5050
```
5151

52-
### list string.split(str s, str delimiter)
52+
### list string.split(str s, str delimiter = ' ')
5353

5454
Splits the string `s` into a list according to the string `delimiter`.
5555

@@ -58,7 +58,7 @@ kaos> string.split("A quick brown fox jumps over the lazy dog", " ")
5858
['A', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog']
5959
```
6060

61-
### str string.join(list words, str separator)
61+
### str string.join(list words, str separator = ' ')
6262

6363
Concatenates a list of strings `words` into a string by separating them with string `separator`.
6464

string.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ int KAOS_EXPORT Kaos_concat()
117117
return 0;
118118
}
119119

120-
// str string.split(str s, str delimiter)
120+
// list string.split(str s, str delimiter = ' ')
121121

122122
char *split_params_name[] = {
123123
"s",
@@ -148,7 +148,7 @@ int KAOS_EXPORT Kaos_split()
148148
return 0;
149149
}
150150

151-
// list string.join(list words, str delimiter)
151+
// str string.join(list words, str separator = ' ')
152152

153153
char *join_params_name[] = {
154154
"words",

0 commit comments

Comments
 (0)