bufix: fix validateNumColons docs

Signed-off-by: bellkeyang <bellkeyang@tencent.com>
pull/8227/head
bellkeyang 5 years ago committed by Vlad Fratila
parent 480dcee122
commit 710c58c8ad

@ -105,7 +105,7 @@ func (ref *Reference) validateRepo() error {
return err return err
} }
// validateNumColon ensures the ref only contains a single colon character (:) // validateNumColons ensures the ref only contains a single colon character (:)
// (or potentially two, there might be a port number specified i.e. :5000) // (or potentially two, there might be a port number specified i.e. :5000)
func (ref *Reference) validateNumColons() error { func (ref *Reference) validateNumColons() error {
if strings.Contains(ref.Tag, ":") { if strings.Contains(ref.Tag, ":") {

Loading…
Cancel
Save