]> Cypherpunks repositories - gostls13.git/commitdiff
Fix xgb/example.go typo.
authorNigel Tao <nigeltao@golang.org>
Tue, 23 Feb 2010 00:54:57 +0000 (11:54 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 23 Feb 2010 00:54:57 +0000 (11:54 +1100)
R=adg
CC=golang-dev
https://golang.org/cl/210047

src/pkg/xgb/example.go

index 1c5ad7505448e16fa4eb1bebf727e373f52a7e5d..c603ea4e23f2f3eac62e98ef0ffa52d2f35f2fa6 100644 (file)
@@ -32,7 +32,7 @@ func main() {
        fmt.Printf("atom = %d\n", atom.Atom)
 
        points := make([]xgb.Point, 2)
-       points[1] = xgb.Point{5, 5}
+       points[0] = xgb.Point{5, 5}
        points[1] = xgb.Point{100, 120}
 
        hosts, _ := c.ListHosts()