diff --git a/src/cmd/asm/internal/asm/asm.go b/src/cmd/asm/internal/asm/asm.go index 563e7947069..375ef803bb7 100644 --- a/src/cmd/asm/internal/asm/asm.go +++ b/src/cmd/asm/internal/asm/asm.go @@ -445,7 +445,7 @@ func (p *Parser) asmJump(op obj.As, cond string, a []obj.Addr) { // BC x,CR0EQ,... // BC x,CR1LT,... // BC x,CR1GT,... - // The first and second case demonstrate a symbol name which is + // The first and second cases demonstrate a symbol name which is // effectively discarded. In these cases, the offset determines // the CR bit. prog.Reg = a[1].Reg @@ -909,7 +909,7 @@ func (p *Parser) asmInstruction(op obj.As, cond string, a []obj.Addr) { p.append(prog, cond, true) } -// symbolName returns the symbol name, or an error string if none if available. +// symbolName returns the symbol name, or an error string if none is available. func symbolName(addr *obj.Addr) string { if addr.Sym != nil { return addr.Sym.Name diff --git a/src/cmd/asm/internal/asm/parse.go b/src/cmd/asm/internal/asm/parse.go index 37f8e6c0bcc..c504e7eeab3 100644 --- a/src/cmd/asm/internal/asm/parse.go +++ b/src/cmd/asm/internal/asm/parse.go @@ -928,7 +928,7 @@ func (p *Parser) funcAddress() (string, obj.ABI, bool) { } // registerIndirect parses the general form of a register indirection. -// It is can be (R1), (R2*scale), (R1)(R2*scale), (R1)(R2.SXTX<<3) or (R1)(R2<<3) +// It can be (R1), (R2*scale), (R1)(R2*scale), (R1)(R2.SXTX<<3) or (R1)(R2<<3) // where R1 may be a simple register or register pair R:R or (R, R) or (R+R). // Or it might be a pseudo-indirection like (FP). // We are sitting on the opening parenthesis. @@ -1186,7 +1186,7 @@ func (p *Parser) registerListX86(a *obj.Addr) { a.Offset = x86.EncodeRegisterRange(lo, hi) } -// register number is ARM-specific. It returns the number of the specified register. +// registerNumber is ARM-specific. It returns the number of the specified register. func (p *Parser) registerNumber(name string) uint16 { if p.arch.Family == sys.ARM && name == "g" { return 10