zcl: Range.ContainsOffset should not have pointer receiver
This commit is contained in:
parent
44670ddd50
commit
6f1cf4465d
@ -62,7 +62,7 @@ func RangeBetween(start, end Range) Range {
|
||||
|
||||
// ContainsOffset returns true if and only if the given byte offset is within
|
||||
// the receiving Range.
|
||||
func (r *Range) ContainsOffset(offset int) bool {
|
||||
func (r Range) ContainsOffset(offset int) bool {
|
||||
return offset >= r.Start.Byte && offset < r.End.Byte
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user