Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov authored Dec 11, 2018
1 parent c71b558 commit 0d076dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tsl_gorm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func main() {
filter, err := sql.Walk(tree)
check(err)

// Create SQL qury.
// Create SQL query.
sql, args, err := filter.ToSql()
check(err)

Expand All @@ -101,7 +101,7 @@ func main() {
for rows.Next() {
var elem Book

// ScanRows scan a row into user
// ScanRows scan a row into our gorm Book element.
err = tx.ScanRows(rows, &elem)
check(err)

Expand Down

0 comments on commit 0d076dc

Please sign in to comment.