Skip to content

Commit f86dfff

Browse files
committed
Fix mixed spaces and tabs in Surprises code samples
1 parent 434a8df commit f86dfff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

surprises.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ rows, err := db.Query("select * from tbl1") // Uses connection 1
117117
for rows.Next() {
118118
err = rows.Scan(&myvariable)
119119
// The following line will NOT use connection 1, which is already in-use
120-
db.Query("select * from tbl2 where id = ?", myvariable)
120+
db.Query("select * from tbl2 where id = ?", myvariable)
121121
}
122122
</pre>
123123

@@ -130,7 +130,7 @@ rows, err := tx.Query("select * from tbl1") // Uses tx's connection
130130
for rows.Next() {
131131
err = rows.Scan(&myvariable)
132132
// ERROR! tx's connection is already busy!
133-
tx.Query("select * from tbl2 where id = ?", myvariable)
133+
tx.Query("select * from tbl2 where id = ?", myvariable)
134134
}
135135
</pre>
136136

0 commit comments

Comments
 (0)