diff options
| author | daiwt <dwt136@gmail.com> | 2021-09-08 06:30:03 +0000 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-09-15 16:21:20 +0000 |
| commit | 6f855447ce5eb78b07b9be9d41434ea85396bbbc (patch) | |
| tree | b3d4e9fa670dc52b35322a4e5617dff8c0de8687 /_content/doc/tutorial | |
| parent | 2812d565ddac5c556a24d17ddd08b9869281937f (diff) | |
| download | go-x-website-6f855447ce5eb78b07b9be9d41434ea85396bbbc.tar.xz | |
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 <aindurti@gmail.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
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) } |
