aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChyroc <chen_yunpeng@foxmail.com>2018-03-01 22:29:23 +0800
committerChyroc <chen_yunpeng@foxmail.com>2018-03-01 22:29:23 +0800
commitfa91bb2ff81dfc60822bf451c515f389b1d608cd (patch)
treed961efd231f31c913e65a09c71d3bb5b776cdb18
parentMerge pull request #736 from tv42/silly-if (diff)
downloaddedo-fa91bb2ff81dfc60822bf451c515f389b1d608cd.tar.gz
dedo-fa91bb2ff81dfc60822bf451c515f389b1d608cd.tar.xz
add tx-copy-deprecated
-rw-r--r--tx.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tx.go b/tx.go
index 6700308..bbb60ac 100644
--- a/tx.go
+++ b/tx.go
@@ -291,7 +291,9 @@ func (tx *Tx) close() {
}
// Copy writes the entire database to a writer.
-// This function exists for backwards compatibility. Use WriteTo() instead.
+// This function exists for backwards compatibility.
+//
+// Deprecated; Use WriteTo() instead.
func (tx *Tx) Copy(w io.Writer) error {
_, err := tx.WriteTo(w)
return err