cmd/internal/obj: fix typo in docs

Change-Id: I5a3d26a4cc59b327d46ca24bcb01ef594758c230
Reviewed-on: https://go-review.googlesource.com/c/go/+/296531
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2021-02-25 09:58:05 -08:00
parent 6c3bcda866
commit 7fcf9893f7

View file

@ -360,7 +360,7 @@ func (p *Prog) SetFrom3(a Addr) {
p.RestArgs = []AddrPos{{a, Source}} p.RestArgs = []AddrPos{{a, Source}}
} }
// SetTo2 assings []Args{{a, 1}} to p.RestArgs when the second destination // SetTo2 assigns []Args{{a, 1}} to p.RestArgs when the second destination
// operand does not fit into prog.RegTo2. // operand does not fit into prog.RegTo2.
func (p *Prog) SetTo2(a Addr) { func (p *Prog) SetTo2(a Addr) {
p.RestArgs = []AddrPos{{a, Destination}} p.RestArgs = []AddrPos{{a, Destination}}