mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
ch3-06 拼写错误
This commit is contained in:
parent
080131aff4
commit
c27291af22
@ -192,7 +192,7 @@ func MyInt_Twice(v MyInt) int {
|
|||||||
// func (v MyInt) Twice() int
|
// func (v MyInt) Twice() int
|
||||||
TEXT ·MyInt·Twice(SB), NOSPLIT, $0-16
|
TEXT ·MyInt·Twice(SB), NOSPLIT, $0-16
|
||||||
MOVQ a+0(FP), AX // v
|
MOVQ a+0(FP), AX // v
|
||||||
MOVQ AX, AX // AX *= 2
|
ADDQ AX, AX // AX *= 2
|
||||||
MOVQ AX, ret+8(FP) // return v
|
MOVQ AX, ret+8(FP) // return v
|
||||||
RET
|
RET
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user