Skip to content

Commit a331a73

Browse files
committed
encoding/mvt: fix MarshalToVectorTile and its comment
1 parent 45a6519 commit a331a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encoding/mvt/marshal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func MarshalGzipped(layers Layers) ([]byte, error) {
3939
return buf.Bytes(), nil
4040
}
4141

42-
// Marshal will take a set of layers and encode them into a Mapbox Vector Tile format.
42+
// MarshalToVectorTile will take a set of layers and encode them into a Mapbox Vector Tile proto structure.
4343
// Features that have a nil geometry, for some reason, will be skipped and not included.
4444
func MarshalToVectorTile(layers Layers) (*vectortile.Tile, error) {
4545
vt := &vectortile.Tile{
@@ -70,7 +70,7 @@ func MarshalToVectorTile(layers Layers) (*vectortile.Tile, error) {
7070
vt.Layers = append(vt.Layers, layer)
7171
}
7272

73-
return vt
73+
return vt, nil
7474
}
7575

7676
// Marshal will take a set of layers and encode them into a Mapbox Vector Tile format.

0 commit comments

Comments
 (0)