Use named value instead of literal
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@ type UntypedTextRange struct {
|
|||||||
func ParseUntypedTextRange(src string) (*UntypedTextRange, error) {
|
func ParseUntypedTextRange(src string) (*UntypedTextRange, error) {
|
||||||
utr := &UntypedTextRange{}
|
utr := &UntypedTextRange{}
|
||||||
if src == "empty" {
|
if src == "empty" {
|
||||||
utr.LowerType = 'E'
|
utr.LowerType = Empty
|
||||||
utr.UpperType = 'E'
|
utr.UpperType = Empty
|
||||||
return utr, nil
|
return utr, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user