Skip to content

Commit 237cdfe

Browse files
committed
Fix example for array_split
1 parent ff79100 commit 237cdfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/bash-commons/src/array.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ function array_contains {
2020
#
2121
# Examples:
2222
#
23-
# array_split "a,b,c" ","
23+
# array_split "," "a,b,c"
2424
# Returns: ("a" "b" "c")
2525
#
2626
# Hint:
27-
# When calling this function, use the following construction: ary=( $(array_split "a,b,c" ",") )
27+
# When calling this function, use the following construction: ary=( $(array_split "," "a,b,c") )
2828
#
2929
# Sources:
3030
# - https://stackoverflow.com/a/15988793/2308858

0 commit comments

Comments
 (0)