summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgx/v4/large_objects.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/jackc/pgx/v4/large_objects.go')
-rw-r--r--vendor/github.com/jackc/pgx/v4/large_objects.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/github.com/jackc/pgx/v4/large_objects.go b/vendor/github.com/jackc/pgx/v4/large_objects.go
index 5255a3b48..c238ab9c2 100644
--- a/vendor/github.com/jackc/pgx/v4/large_objects.go
+++ b/vendor/github.com/jackc/pgx/v4/large_objects.go
@@ -56,10 +56,10 @@ func (o *LargeObjects) Unlink(ctx context.Context, oid uint32) error {
// A LargeObject is a large object stored on the server. It is only valid within the transaction that it was initialized
// in. It uses the context it was initialized with for all operations. It implements these interfaces:
//
-// io.Writer
-// io.Reader
-// io.Seeker
-// io.Closer
+// io.Writer
+// io.Reader
+// io.Seeker
+// io.Closer
type LargeObject struct {
ctx context.Context
tx Tx
@@ -108,13 +108,13 @@ func (o *LargeObject) Tell() (n int64, err error) {
return n, err
}
-// Trunctes the large object to size.
+// Truncate the large object to size.
func (o *LargeObject) Truncate(size int64) (err error) {
_, err = o.tx.Exec(o.ctx, "select lo_truncate64($1, $2)", o.fd, size)
return err
}
-// Close closees the large object descriptor.
+// Close the large object descriptor.
func (o *LargeObject) Close() error {
_, err := o.tx.Exec(o.ctx, "select lo_close($1)", o.fd)
return err