From 6c836cbcaf02184b1750ddbaf7a39af73cb13652 Mon Sep 17 00:00:00 2001 From: Cenk Alti Date: Mon, 15 May 2023 15:58:31 -0400 Subject: [PATCH] Fix deprecated comment. Correct way of marking a method deprecated is adding a paragraph that starts with "Deprecated:". https://go.dev/blog/godoc https://github.com/golang/go/blob/ff3aefbad4bed0cdd25688329e5cc4f908276a46/src/cmd/api/api.go#L1137 Signed-off-by: Cenk Alti --- tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tx.go b/tx.go index 340dda8..5b8e25b 100644 --- a/tx.go +++ b/tx.go @@ -330,7 +330,7 @@ func (tx *Tx) close() { // Copy writes the entire database to a writer. // This function exists for backwards compatibility. // -// Deprecated; Use WriteTo() instead. +// Deprecated: Use WriteTo() instead. func (tx *Tx) Copy(w io.Writer) error { _, err := tx.WriteTo(w) return err