Skip to content

Commit 4119ddf

Browse files
committed
Update Shell.md
1 parent 6e9954f commit 4119ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/operating-system/Shell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ echo $length2 #输出:5
262262
echo ${array[2]} #输出:3
263263
unset array[1]# 删除下标为1的元素也就是删除第二个元素
264264
for i in ${array[@]};do echo $i ;done # 遍历数组,输出: 1 3 4 5
265-
unset arr_number; # 删除数组中的所有元素
265+
unset array; # 删除数组中的所有元素
266266
for i in ${array[@]};do echo $i ;done # 遍历数组,数组元素为空,没有任何输出内容
267267
```
268268

0 commit comments

Comments
 (0)