Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: lencap <[email protected]>
  • Loading branch information
lencap committed Jan 27, 2025
1 parent a803ac9 commit 47f3f65
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion maths/triangle.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func destructure(polygons [][]Line) (lines []Line) {
// We only care about the first triangle node, as an edge can only contain two triangles.
type aNodeList map[[2]Pt]*TriangleNode

// AddTrinagleForPts will order the points, create a new Triangle and add it to the Node List.
// AddTriangleForPts will order the points, create a new Triangle and add it to the Node List.
func (nl aNodeList) AddTriangleForPts(pt1, pt2, pt3 Pt, fnIsConstrained func(pt1, pt2 Pt) bool) (tri *TriangleNode, err error) {

var fn = func(pt1, pt2 Pt) bool { return false }
Expand Down
2 changes: 1 addition & 1 deletion observability/observability.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func InstrumentAPIHandler(method, route string, observer APIObserver, handler ht
return method, route, observer.InstrumentedAPIHttpHandler(method, route, handler)
}

// InstrumentViewHandler is a convenience function
// InstrumentViewerHandler is a convenience function
func InstrumentViewerHandler(method, route string, observer ViewerObserver, handler http.Handler) (string, string, http.Handler) {
if observer == nil {
return method, route, handler
Expand Down
2 changes: 1 addition & 1 deletion provider/gpkg/binary_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (h *BinaryHeader) IsGeometryEmpty() bool {
return h.flags.IsEmpty()
}

// IsStandardGeometery is the geometry a core/extended geometry type, or a user defined geometry type.
// IsStandardGeometry is the geometry a core/extended geometry type, or a user defined geometry type.
func (h *BinaryHeader) IsStandardGeometry() bool {
if h == nil {
return true
Expand Down
2 changes: 1 addition & 1 deletion provider/test/emptycollection/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (tp *TileProvider) Layers() ([]provider.LayerInfo, error) {
}, nil
}

// TilFeatures always returns a feature with a polygon outlining the tile's Extent (not Buffered Extent)
// TileFeatures always returns a feature with a polygon outlining the tile's Extent (not Buffered Extent)
func (tp *TileProvider) TileFeatures(ctx context.Context, layer string, t provider.Tile, queryParams provider.Params, fn func(f *provider.Feature) error) error {
// get tile bounding box
_, srid := t.Extent()
Expand Down

0 comments on commit 47f3f65

Please sign in to comment.