From 83881a604c7546b4c0cf9eb692c921d708761f29 Mon Sep 17 00:00:00 2001 From: akashkasurde <34804511+akashkasurde@users.noreply.github.com> Date: Thu, 13 Dec 2018 19:01:43 +0530 Subject: [PATCH] fix: go type system bits example --- 09-go-type-system/01-bits/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/09-go-type-system/01-bits/main.go b/09-go-type-system/01-bits/main.go index 33de6e2..9a0cce6 100644 --- a/09-go-type-system/01-bits/main.go +++ b/09-go-type-system/01-bits/main.go @@ -72,7 +72,7 @@ func main() { i, _ := strconv.ParseInt("00000010", 2, 64) fmt.Println(i) - // 0 0 0 1 0 1 1 0 is equal to 2 because: + // 0 0 0 1 0 1 1 0 is equal to 22 because: // ^ ^ ^ ^ ^ ^ ^ ^ // | | | | | | | | // | | | | | | | +-> 2^0 * 0 = 0