]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix typos in comments
authorAustin Clements <austin@google.com>
Mon, 3 Aug 2015 22:09:13 +0000 (18:09 -0400)
committerAustin Clements <austin@google.com>
Tue, 4 Aug 2015 18:54:56 +0000 (18:54 +0000)
Change-Id: I66f7937b22bb6e05c3f2f0f2a057151020ad9699
Reviewed-on: https://go-review.googlesource.com/13049
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgc.go

index c8031d7db7026c420bf0ac5ca679eb4a16e7f221..f7e9908a8af8542c7e2449ff4fd39357fe9652f5 100644 (file)
@@ -498,7 +498,7 @@ func (c *gcControllerState) endCycle() {
        // Compute next cycle trigger ratio. First, this computes the
        // "error" for this cycle; that is, how far off the trigger
        // was from what it should have been, accounting for both heap
-       // growth and GC CPU utilization. We computing the actual heap
+       // growth and GC CPU utilization. We compute the actual heap
        // growth during this cycle and scale that by how far off from
        // the goal CPU utilization we were (to estimate the heap
        // growth if we had the desired CPU utilization). The
@@ -1475,7 +1475,7 @@ func gcMark(start_time int64) {
        } else {
                // This can happen if most of the allocation during
                // the cycle never became reachable from the heap.
-               // Just set the reachable heap appropriation to 0 and
+               // Just set the reachable heap approximation to 0 and
                // let the heapminimum kick in below.
                memstats.heap_reachable = 0
        }