Browse Source

Merge pull request #370 from kevinetienne/fix-doc-read-struct

Fix documentation showing how to use read struct
Ryan Hollis 7 years ago
parent
commit
3988864eaa
1 changed files with 1 additions and 2 deletions
  1. 1 2
      example_read_test.go

+ 1 - 2
example_read_test.go

@@ -29,8 +29,7 @@ func ExampleRow_ReadStruct() {
 	readStruct := &structTest{}
 	err := row.ReadStruct(readStruct)
 	if err != nil {
-		fmt.Println(readStruct)
-	} else {
 		panic(err)
 	}
+	fmt.Println(readStruct)
 }