diff --git a/xy/line_centroid_examples_test.go b/xy/line_centroid_examples_test.go index e0fd390b..3e37976d 100644 --- a/xy/line_centroid_examples_test.go +++ b/xy/line_centroid_examples_test.go @@ -19,7 +19,7 @@ func ExampleLinearRingsCentroid() { line1 := geom.NewLinearRingFlat(geom.XY, []float64{0, 0, 1, 1, 3, 3, 0, 0}) line2 := geom.NewLinearRingFlat(geom.XY, []float64{10, 10, 11, 11, 13, 13, 10, 10}) centroid := xy.LinearRingsCentroid(line1, line2) - fmt.Println(centroid) + fmt.Printf("[%.1f %.1f]\n", centroid.X(), centroid.Y()) // Output: [6.5 6.5] }