Skip to content

Commit 9a6307b

Browse files
committed
fix some typos
1 parent 1bcee55 commit 9a6307b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/array.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ $ echo ${#a[100]}
263263
$ arr=([5]=a [9]=b [23]=c)
264264
$ echo ${!arr[@]}
265265
5 9 23
266-
$ echo ${!arr[@*]}
266+
$ echo ${!arr[*]}
267267
5 9 23
268268
```
269269

docs/variable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ $ echo $result
381381
60
382382
```
383383

384-
上面例子中,如果变量`result`不声明为整数,`val1*val2`会被当作字面量,不会进行整数运算。另外,`val1``val2`其实不需要声明为整数,因为只要`resule`声明为整数,它的赋值就会自动解释为整数运算。
384+
上面例子中,如果变量`result`不声明为整数,`val1*val2`会被当作字面量,不会进行整数运算。另外,`val1``val2`其实不需要声明为整数,因为只要`result`声明为整数,它的赋值就会自动解释为整数运算。
385385

386386
注意,一个变量声明为整数以后,依然可以被改写为字符串。
387387

0 commit comments

Comments
 (0)