Skip to content

Commit

Permalink
runtime: fix typo in comment (object -> objects)
Browse files Browse the repository at this point in the history
Change-Id: I2af1f9dcd1a9609681e58ab07e73e6d7a5f8a12b
Reviewed-on: https://go-review.googlesource.com/c/go/+/237160
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
bradfitz committed Jun 9, 2020
1 parent 281f0ed commit 619072b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/mstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ func updatememstats() {

// Calculate memory allocator stats.
// During program execution we only count number of frees and amount of freed memory.
// Current number of alive object in the heap and amount of alive heap memory
// Current number of alive objects in the heap and amount of alive heap memory
// are calculated by scanning all spans.
// Total number of mallocs is calculated as number of frees plus number of alive objects.
// Similarly, total amount of allocated memory is calculated as amount of freed memory
Expand Down

0 comments on commit 619072b

Please sign in to comment.