]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix two minor typos in comments
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 9 May 2017 19:48:23 +0000 (12:48 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 3 Mar 2020 17:44:05 +0000 (17:44 +0000)
Change-Id: Iec6cd81c9787d3419850aa97e75052956ad139bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/221789
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/cmd/compile/internal/x86/387.go
test/codegen/README

index 18838fb4ca16d0c20b39e28d9406cde9004f677a..796aa82f19085e2880f213c3a11e37f0c29baa79 100644 (file)
@@ -326,7 +326,7 @@ func push(s *gc.SSAGenState, v *ssa.Value) {
 }
 
 // popAndSave pops a value off of the floating-point stack and stores
-// it in the reigster assigned to v.
+// it in the register assigned to v.
 func popAndSave(s *gc.SSAGenState, v *ssa.Value) {
        r := v.Reg()
        if _, ok := s.SSEto387[r]; ok {
index f6877e701d2cba0c74e383ce09c57d47e7693074..d6b8cf5b32f76b78d09fde2056be95aeb182cfc6 100644 (file)
@@ -125,7 +125,7 @@ As a general guideline, test functions should be small, to avoid
 possible interactions between unrelated lines of code that may be
 introduced, for example, by the compiler's optimization passes.
 
-Any given line of Go code could get assigned more instructions that it
+Any given line of Go code could get assigned more instructions than it
 may appear from reading the source. In particular, matching all MOV
 instructions should be avoided; the compiler may add them for
 unrelated reasons and this may render the test ineffective.