aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authorPhilip O Toole <philip.otoole@yahoo.com>2016-02-23 01:20:57 -0500
committerPhilip O Toole <philip.otoole@yahoo.com>2016-02-23 01:26:13 -0500
commit1e280555b7a56165ad13eac5ba30f72d1243e8d6 (patch)
treecdf0b741c88ae34a2bf69e07739dadbc1a8f84a4 /sqlite3.go
parentMerge pull request #267 from ianlancetaylor/go16 (diff)
downloadgolite-1e280555b7a56165ad13eac5ba30f72d1243e8d6.tar.gz
golite-1e280555b7a56165ad13eac5ba30f72d1243e8d6.tar.xz
Fix minor typos in comments
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 0a6f136..db34b23 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -130,7 +130,7 @@ func init() {
sql.Register("sqlite3", &SQLiteDriver{})
}
-// Return SQLite library Version information.
+// Version returns SQLite library version information.
func Version() (libVersion string, libVersionNumber int, sourceId string) {
libVersion = C.GoString(C.sqlite3_libversion())
libVersionNumber = int(C.sqlite3_libversion_number())
@@ -598,7 +598,7 @@ func errorString(err Error) string {
}
// Open database and return a new connection.
-// You can specify DSN string with URI filename.
+// You can specify a DSN string using a URI as the filename.
// test.db
// file:test.db?cache=shared&mode=memory
// :memory:
@@ -715,7 +715,7 @@ func (c *SQLiteConn) Close() error {
return nil
}
-// Prepare query string. Return a new statement.
+// Prepare the query string. Return a new statement.
func (c *SQLiteConn) Prepare(query string) (driver.Stmt, error) {
pquery := C.CString(query)
defer C.free(unsafe.Pointer(pquery))