summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/xerrors/fmt.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/xerrors/fmt.go')
-rw-r--r--vendor/golang.org/x/xerrors/fmt.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/golang.org/x/xerrors/fmt.go b/vendor/golang.org/x/xerrors/fmt.go
index 829862dd..6df18669 100644
--- a/vendor/golang.org/x/xerrors/fmt.go
+++ b/vendor/golang.org/x/xerrors/fmt.go
@@ -33,6 +33,8 @@ const percentBangString = "%!"
// It is invalid to include more than one %w verb or to supply it with an
// operand that does not implement the error interface. The %w verb is otherwise
// a synonym for %v.
+//
+// Deprecated: As of Go 1.13, use fmt.Errorf instead.
func Errorf(format string, a ...interface{}) error {
format = formatPlusW(format)
// Support a ": %[wsv]" suffix, which works well with xerrors.Formatter.