zcl: Range.ContainsOffset should not have pointer receiver

This commit is contained in:
Martin Atkins 2017-06-04 09:37:37 -07:00
parent 44670ddd50
commit 6f1cf4465d

View File

@ -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
}