aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2010-02-23 11:54:57 +1100
committerNigel Tao <nigeltao@golang.org>2010-02-23 11:54:57 +1100
commit2ac3df210b723d8f1969b070cf56f18df3b5dc57 (patch)
treeaccea4f1416cd18549ee415b349b97a855909446
parent2551cf9d1a8760c187540224c5ed796aef7f2f7b (diff)
downloadgo-2ac3df210b723d8f1969b070cf56f18df3b5dc57.tar.gz
go-2ac3df210b723d8f1969b070cf56f18df3b5dc57.zip
Fix xgb/example.go typo.
R=adg CC=golang-dev https://golang.org/cl/210047
-rw-r--r--src/pkg/xgb/example.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/xgb/example.go b/src/pkg/xgb/example.go
index 1c5ad75054..c603ea4e23 100644
--- a/src/pkg/xgb/example.go
+++ b/src/pkg/xgb/example.go
@@ -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()