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 <github@gone.nl>
(cherry picked from commit 3c71f4933d
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2c4bf1a664
commit
b57133cc21
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,8 @@ func splitDomain(name string) (string, string) {
|
||||||
// hostname and name string. If no valid hostname is
|
// hostname and name string. If no valid hostname is
|
||||||
// found, the hostname is empty and the full value
|
// found, the hostname is empty and the full value
|
||||||
// is returned as name
|
// is returned as name
|
||||||
// DEPRECATED: Use Domain or Path
|
//
|
||||||
|
// Deprecated: Use [Domain] or [Path].
|
||||||
func SplitHostname(named Named) (string, string) {
|
func SplitHostname(named Named) (string, string) {
|
||||||
if r, ok := named.(namedRepository); ok {
|
if r, ok := named.(namedRepository); ok {
|
||||||
return r.Domain(), r.Path()
|
return r.Domain(), r.Path()
|
||||||
|
|
Loading…
Reference in a new issue