From 66343e1a281fe9984b20d6632cc938818379c637 Mon Sep 17 00:00:00 2001 From: "anhhh.11" Date: Fri, 22 May 2020 12:32:00 +0700 Subject: [PATCH] Fix wrong comment --- 09-go-type-system/04-overflow/02-explain/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)