Skip to content

Commit 89da67e

Browse files
Fixes from review comments
1 parent 3e68072 commit 89da67e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/position/range.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func InRange(point ast.Location, theRange ast.LocationRange) bool {
4949
return true
5050
}
5151

52-
// RangeGreaterThan returns true if the first range is greater than the second.
52+
// RangeGreaterOrEqual returns true if the first range is greater than the second.
5353
func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool {
5454
if a.Begin.Line > b.Begin.Line {
5555
return false

pkg/processing/object.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
// filterSelfScope takes in an array of objects (blocks delimited by curly braces) and
99
// returns a new array of objects, where only objects in scope of the first one are kept
1010
// This is done by comparing the location ranges. If the range of the first object is
11-
// contained within the range of another object, that object is removed because
11+
// contained within the range of another object, the latter object is removed because
1212
// it is a parent of the first object.
1313
func filterSelfScope(objs []*ast.DesugaredObject) (result []*ast.DesugaredObject) {
1414
if len(objs) == 0 {

0 commit comments

Comments
 (0)