1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

Merge pull request #137 from fuwensun/pr3-20

ch3-04-fix typo
This commit is contained in:
chai2010 2018-06-28 17:19:49 +08:00 committed by GitHub
commit 4fa6707252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ func Add() (a []int) // reflect.SliceHeader 切片头刚好也是 3 个 int 成
## 函数参数和返回值
对于函数来说最重要的是函数对外提供的API约定包含函数的名称、参数和返回值。当名称和参数返回都确定之后,如何精确计算参数和返回值的大小是第一个需要解决的问题。
对于函数来说最重要的是函数对外提供的API约定包含函数的名称、参数和返回值。当这些都确定之后,如何精确计算参数和返回值的大小是第一个需要解决的问题。
![](../images/ch3-func-decl-02.ditaa.png)