Skip to content

Commit

Permalink
Merge pull request #68 from aaraney/patch-1
Browse files Browse the repository at this point in the history
Fix inconsistency in KB and MB in example code and output
  • Loading branch information
teivah committed Nov 28, 2023
2 parents f831c19 + 934cedf commit 7a8e78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/28-maps-memory-leaks.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
func printAlloc() {
var m runtime.MemStats
runtime.ReadMemStats(&m)
fmt.Printf("%d KB\n", m.Alloc/1024)
fmt.Printf("%d MB\n", m.Alloc/(1024*1024))
}
```

Expand Down

0 comments on commit 7a8e78c

Please sign in to comment.