mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-07-07 19:19:53 +00:00
Fix deprecated comment.
Correct way of marking a method deprecated is adding a paragraph that
starts with "Deprecated:".
https://go.dev/blog/godoc
ff3aefbad4/src/cmd/api/api.go (L1137)
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
This commit is contained in:
parent
8b1ee10512
commit
6c836cbcaf
2
tx.go
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user