diff --git a/docs/28-maps-memory-leaks.md b/docs/28-maps-memory-leaks.md index 865c2361..e0654679 100644 --- a/docs/28-maps-memory-leaks.md +++ b/docs/28-maps-memory-leaks.md @@ -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)) } ```