mirror of https://github.com/Idnan/bash-guide.git
Corrected example for array initialization (#22)
Given example does not initialize an array - there is a probably typo in code sample.
This commit is contained in:
parent
0c46fdf4e1
commit
089476ea2f
|
@ -885,7 +885,7 @@ array[0] = val
|
||||||
array[1] = val
|
array[1] = val
|
||||||
array[2] = val
|
array[2] = val
|
||||||
array=([2]=val [0]=val [1]=val)
|
array=([2]=val [0]=val [1]=val)
|
||||||
array(val val val)
|
array=(val val val)
|
||||||
```
|
```
|
||||||
To display a value at specific index use following syntax:
|
To display a value at specific index use following syntax:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue