From 6f855447ce5eb78b07b9be9d41434ea85396bbbc Mon Sep 17 00:00:00 2001 From: daiwt Date: Wed, 8 Sep 2021 06:30:03 +0000 Subject: x/website: fix bad indentation in tutorial -> database-access Change-Id: I0ba4e67c02827aa8a985b24dbc208412a0721729 GitHub-Last-Rev: 463be1cb9f689eabe45284a0e284c03b31554fa3 GitHub-Pull-Request: golang/website#84 Reviewed-on: https://go-review.googlesource.com/c/website/+/344371 Reviewed-by: Akhil Indurti Reviewed-by: Russ Cox Trust: Dmitri Shuralyov Website-Publish: Russ Cox --- _content/doc/tutorial/database-access.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_content/doc/tutorial/database-access.md') 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) } -- cgit v1.3