diff --git a/09-go-type-system/04-overflow/02-explain/main.go b/09-go-type-system/04-overflow/02-explain/main.go index 34df776..15ef8c5 100644 --- a/09-go-type-system/04-overflow/02-explain/main.go +++ b/09-go-type-system/04-overflow/02-explain/main.go @@ -38,7 +38,7 @@ func main() { // wrap around to its minimum un = math.MaxUint8 - fmt.Println("max uint8 + 1:", un+1) // 255 + fmt.Println("max uint8 + 1:", un+1) // 0 // floats goes to infinity when overflowed f := float32(math.MaxFloat32)