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

ch3-06 拼写错误

This commit is contained in:
pplonepiece 2018-07-22 23:30:50 +08:00
parent 080131aff4
commit c27291af22

View File

@ -192,7 +192,7 @@ func MyInt_Twice(v MyInt) int {
// func (v MyInt) Twice() int
TEXT ·MyInt·Twice(SB), NOSPLIT, $0-16
MOVQ a+0(FP), AX // v
MOVQ AX, AX // AX *= 2
ADDQ AX, AX // AX *= 2
MOVQ AX, ret+8(FP) // return v
RET
```