Skip to content

Commit 9ff7231

Browse files
authored
Run gofmt -s (golang#148)
1 parent 1bf973d commit 9ff7231

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

s2/example_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func ExampleEdgeQuery_FindEdges_findClosestEdges() {
129129
// fractal.setLevelForApproxMaxEdges(48)
130130
// fractal.makeLoop(randomFrameAtPoint(
131131
// PointFromLatLng(LatLngFromDegrees(39.833, -98.55))), s1.Angle(0.15))
132-
s2.Polyline{
132+
{
133133
s2.PointFromLatLng(s2.LatLngFromDegrees(47.5467, -103.6035)),
134134
s2.PointFromLatLng(s2.LatLngFromDegrees(45.9214, -103.7320)),
135135
s2.PointFromLatLng(s2.LatLngFromDegrees(45.1527, -105.8000)),
@@ -224,7 +224,7 @@ func ExampleEdgeQuery_FindEdges_findFurthestEdges() {
224224
polylines := []s2.Polyline{
225225
// This is an iteration = 3 Koch snowflake centered at the
226226
// center of the continental US.
227-
s2.Polyline{
227+
{
228228
s2.PointFromLatLng(s2.LatLngFromDegrees(47.5467, -103.6035)),
229229
s2.PointFromLatLng(s2.LatLngFromDegrees(45.9214, -103.7320)),
230230
s2.PointFromLatLng(s2.LatLngFromDegrees(45.1527, -105.8000)),

s2/textformat_test_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestParseLatLng(t *testing.T) {
3838
},
3939
{
4040
have: "0:0",
41-
want: []LatLng{LatLng{Lat: 0, Lng: 0}},
41+
want: []LatLng{{Lat: 0, Lng: 0}},
4242
},
4343
{
4444
have: "0:0, 0:-90",

0 commit comments

Comments
 (0)