summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1c5ad7505..c603ea4e2 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()