fix: go type system bits example

This commit is contained in:
akashkasurde
2018-12-13 19:01:43 +05:30
committed by Inanc Gumus
parent 571337643f
commit 83881a604c

View File

@ -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