From b57133cc21dd406aa8a927953ee06a4e99c14772 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 6 Nov 2022 22:52:01 +0100 Subject: [PATCH] referene: fix formatting of "deprecated" comment. Go requires "deprecated" comments to have an empty line before them, and to not be all-caps. This updates to the comment so that it's correctly picked up as deprecated. Signed-off-by: Sebastiaan van Stijn (cherry picked from commit 3c71f4933db1c49201765df66faf5dc6dc9ba884) Signed-off-by: Sebastiaan van Stijn --- reference/reference.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/reference.go b/reference/reference.go index 4fdf4fd46..fa5d66ced 100644 --- a/reference/reference.go +++ b/reference/reference.go @@ -175,7 +175,8 @@ func splitDomain(name string) (string, string) { // hostname and name string. If no valid hostname is // found, the hostname is empty and the full value // is returned as name -// DEPRECATED: Use Domain or Path +// +// Deprecated: Use [Domain] or [Path]. func SplitHostname(named Named) (string, string) { if r, ok := named.(namedRepository); ok { return r.Domain(), r.Path()