-
Notifications
You must be signed in to change notification settings - Fork 521
Open
golang/website
#68Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Description
Context: https://tour.golang.org/flowcontrol/1
Build version go1.10.
Both the online tour and the one I've downloaded which is run on my native machine (MacOS High Sierra 10.13.3), show that the output of the for loop below is the integer 45:
package main
import "fmt"
func main() {
sum := 0
for i := 0; i < 10; i++ {
sum += i
}
fmt.Println(sum)
}
Where the output should be:
0
1
2
3
4
5
6
7
8
9
I am unsure if this issue has been flagged before, but it could be disruptive for new comers with no prior programming experience.
Mikaela
Metadata
Metadata
Assignees
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.