Use named value instead of literal

issue-342
Jack Christensen 2017-11-04 13:37:47 -05:00
parent 2b4558fe22
commit e16749774d
1 changed files with 2 additions and 2 deletions

View File

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