From 03743fe2ef970fc17f1926214efb85196c0dd909 Mon Sep 17 00:00:00 2001 From: Michael Flaxman Date: Tue, 16 Jun 2020 17:37:13 -0500 Subject: [PATCH] bugfix You can see how the previous version was invalid here: https://play.golang.org/p/IthX3cWv_V7 ``` ./prog.go:25:9: assignment mismatch: 2 variables but strconv.Itoa returns 1 values ./prog.go:25:25: cannot use "1023" (type untyped string) as type int in argument to strconv.Itoa ``` --- en/07.6.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/en/07.6.md b/en/07.6.md index 694b8396..ab833f18 100644 --- a/en/07.6.md +++ b/en/07.6.md @@ -148,10 +148,7 @@ func main() { if err != nil { fmt.Println(err) } - e, err := strconv.Itoa("1023") - if err != nil { - fmt.Println(err) - } + e := strconv.Itoa(1023) fmt.Println(a, b, c, d, e) } ```