File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ func SetVerbose(verbose bool) {
3232
3333// SetTags allows you to override the tags used when decoding or encoding
3434// structs. The driver will check for the tags in the same order that they were
35- // passed into this function. If nil is passed then the driver will just check
36- // for the gorethink tag.
35+ // passed into this function. If no parameters are passed then the driver will
36+ // default to checking for the gorethink tag.
3737func SetTags (tags ... string ) {
3838 encoding .Tags = tags
3939}
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ func (s *RethinkSuite) TestControlStruct(c *test.C) {
107107
108108func (s * RethinkSuite ) TestControlStructTags (c * test.C ) {
109109 SetTags ("gorethink" , "json" )
110- defer SetTags (nil )
110+ defer SetTags ()
111111
112112 var response map [string ]interface {}
113113 query := Expr (TagsTest {"1" , "2" , "3" })
You can’t perform that action at this time.
0 commit comments