Skip to content

Commit 7108799

Browse files
authored
sqlite: fix up some comments (#62)
Signed-off-by: Brad Fitzpatrick <[email protected]>
1 parent 934438a commit 7108799

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cgosqlite/cgosqlite.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ type DB struct {
9090
declTypes map[string]string
9191
}
9292

93-
// cStmt is a wrapper around an sqlite3 *sqlite3_stmt. Except it's stored as
94-
// uintptr to avoid allocations due to poor interactions between cgo's pointer
95-
// checker and Go's escape analysis.
93+
// cStmt is a wrapper around an sqlite3 *sqlite3_stmt. Except rather than
94+
// storing it as a pointer, it's stored as uintptr to avoid allocations due to
95+
// poor interactions between cgo's pointer checker and Go's escape analysis.
9696
//
9797
// The ptr method returns the value as a pointer, for call sites that haven't
98-
// yet or don't need the optimization. This lets us migrate incrementally.
98+
// yet been optimized or don't need the optimization. This lets us migrate
99+
// incrementally.
99100
//
100101
// See http://go/corp/9919.
101102
type cStmt struct {

0 commit comments

Comments
 (0)