Skip to content

Commit

Permalink
Update 03.6.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xionghui committed Nov 27, 2019
1 parent 6aa94f1 commit 21220be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eBook/chapter3/03.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Go支持指针!**指针**是内存地址,它能够提升代码运行效率
`returnPointer()`的参数是一个整数,返回值是指向整数的指针,尽管这样看起来并没有什么用处,但是在第四章中,当我们讨论指向结构体的指针以及其他复杂数据结构时,你就会发现这种操作的优势。
`getPointer()``returnPointer()`函数的作用都是求一个整数的平凡,区别在于`getPointer()`使用传递来的参数存储计算结果,而`returnPointer()`函数重新声明了一个变量来存储运算结果。
`getPointer()``returnPointer()`函数的作用都是求一个整数的平方,区别在于`getPointer()`使用传递来的参数存储计算结果,而`returnPointer()`函数重新声明了一个变量来存储运算结果。
第二部分:
Expand Down Expand Up @@ -96,4 +96,4 @@ Go支持指针!**指针**是内存地址,它能够提升代码运行效率
> 144
> 0xc4200140c8
你可能对`pointers.go`中的某些代码感到困惑,因为我们在第六章才开始讨论函数及函数定义,可以去了解关于函数的更多信息。
你可能对`pointers.go`中的某些代码感到困惑,因为我们在第六章才开始讨论函数及函数定义,可以去了解关于函数的更多信息。

0 comments on commit 21220be

Please sign in to comment.