From 3c71f4933db1c49201765df66faf5dc6dc9ba884 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 --- reference/reference.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/reference.go b/reference/reference.go index fa7ceadbf..3499fbf8f 100644 --- a/reference/reference.go +++ b/reference/reference.go @@ -177,7 +177,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()