diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-09-03 20:56:02 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-09-03 21:16:02 +0100 |
commit | 84e4e2d56d3e2878741a2d03a98d4739db8dbd50 (patch) | |
tree | df9d3e92071291fd154f149072e470d8cecbfd11 /vendor/github.com/golang/protobuf/proto/text_parser.go | |
parent | eb9015e8f6f92e3e4421ddaf74ad20960723596c (diff) |
Update dependencies
Also tweak travis config
Diffstat (limited to 'vendor/github.com/golang/protobuf/proto/text_parser.go')
-rw-r--r-- | vendor/github.com/golang/protobuf/proto/text_parser.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/golang/protobuf/proto/text_parser.go b/vendor/github.com/golang/protobuf/proto/text_parser.go index 7e6f145..4fd0531 100644 --- a/vendor/github.com/golang/protobuf/proto/text_parser.go +++ b/vendor/github.com/golang/protobuf/proto/text_parser.go @@ -792,12 +792,12 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error { fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) return p.readAny(fv.Index(fv.Len()-1), props) case reflect.Bool: - // Either "true", "false", 1 or 0. + // true/1/t/True or false/f/0/False. switch tok.value { - case "true", "1": + case "true", "1", "t", "True": fv.SetBool(true) return nil - case "false", "0": + case "false", "0", "f", "False": fv.SetBool(false) return nil } |