mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
ch2-06-fix typo
This commit is contained in:
parent
afca43632f
commit
727cc99aad
@ -43,7 +43,7 @@ int main() {
|
|||||||
```
|
```
|
||||||
|
|
||||||
其中`DIM(values)`宏用于几十数组元素的个数,`sizeof(values[0])`用于计算数组元素的大小。
|
其中`DIM(values)`宏用于几十数组元素的个数,`sizeof(values[0])`用于计算数组元素的大小。
|
||||||
cmp是用于排序时比较两个元素大小的回调函数。为了避免对全局名字空间的污染,我们将cmp回调函数定义为仅当前文件内可方位的静态函数。
|
cmp是用于排序时比较两个元素大小的回调函数。为了避免对全局名字空间的污染,我们将cmp回调函数定义为仅当前文件内可访问的静态函数。
|
||||||
|
|
||||||
## 将qsort函数从Go包导出
|
## 将qsort函数从Go包导出
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user