From 72c2dafd2ef7909806e67c421f77c264e17496f1 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 9 Jan 2021 04:11:46 +0200 Subject: [PATCH] minor --- versioning/deprecation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/versioning/deprecation.go b/versioning/deprecation.go index a67a9f1e..d35fadae 100644 --- a/versioning/deprecation.go +++ b/versioning/deprecation.go @@ -55,7 +55,8 @@ func WriteDeprecated(ctx *context.Context, options DeprecationOptions) { } } -// Deprecated marks a specific handler as a deprecated. +// Deprecated wraps an existing API handler and +// marks it as a deprecated one. // Deprecated can be used to tell the clients that // a newer version of that specific resource is available instead. func Deprecated(handler context.Handler, options DeprecationOptions) context.Handler {