diff options
Diffstat (limited to '_content/doc/tutorial')
| -rw-r--r-- | _content/doc/tutorial/database-access.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_content/doc/tutorial/database-access.md b/_content/doc/tutorial/database-access.md index 361021f2..f2ede707 100644 --- a/_content/doc/tutorial/database-access.md +++ b/_content/doc/tutorial/database-access.md @@ -506,7 +506,7 @@ For SQL statements you know will return at most a single row, you can use var alb Album row := db.QueryRow("SELECT * FROM album WHERE id = ?", id) - if err := row.Scan(&alb.ID, &alb.Title, &alb.Artist, &alb.Price); err != nil { + if err := row.Scan(&alb.ID, &alb.Title, &alb.Artist, &alb.Price); err != nil { if err == sql.ErrNoRows { return alb, fmt.Errorf("albumsById %d: no such album", id) } |
