Skip to content

Commit d0fd8d4

Browse files
committed
Update the documentation for the optional parameters feature
1 parent 0aa6fd5 commit d0fd8d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ kaos> array.merge(a, b)
2323
[1, 2, 3, 4, 5, 6]
2424
```
2525

26-
### list array.insert(list l, any x, num i)
26+
### list array.insert(list l, any x, num i = -1)
2727

2828
Inserts a new item `x` into list `l` before index `i`.
2929

array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int KAOS_EXPORT Kaos_merge()
3838
return 0;
3939
}
4040

41-
// list array.insert(list l, any x, num i)
41+
// list array.insert(list l, any x, num i = -1)
4242

4343
char *insert_params_name[] = {
4444
"l",

0 commit comments

Comments
 (0)