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) {
|
||||
utr := &UntypedTextRange{}
|
||||
if src == "empty" {
|
||||
utr.LowerType = 'E'
|
||||
utr.UpperType = 'E'
|
||||
utr.LowerType = Empty
|
||||
utr.UpperType = Empty
|
||||
return utr, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user