johnwahba / go-tour

Automatically exported from code.google.com/p/go-tour
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

trying to print i, believes it is not defined, but it is defined in the loop? Perhaps my misunde... #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
https://feedback.corp.google.com/#/Report/1069226916

Description:
trying to print i, believes i is not defined, but it is defined in the loop?

Perhaps my misunderstanding, but lesson 12 lead me to believe there should be 
no problem with this.

I tested with 

"var i int" at the top and "i = 0" at the start of the loop and it works fine.

Hope this is something useful and not my misunderstanding!

Description translated:
trying to print i, believes it is not defined, but it is defined in the loop?

Perhaps my misunderstanding, but lesson 12 lead me to believe there should be 
no problem with this.

I tested with 

"var i int" at the top and "i = 0" at the start of the loop and it works fine.

Hope this is something useful and not my misunderstanding!

UI language: en
Detected language: en

Original issue reported on code.google.com by feedback...@gmail.com on 30 Jul 2013 at 12:04