Fix on comments

Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
chymy 2020-12-28 15:28:51 +08:00
parent 0a839c6c3b
commit 25f8545b9d
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ func (ls Set) AsSelectorPreValidated() Selector {
return SelectorFromValidatedSet(ls)
}
// FormatLabels convert label map into plain string
// FormatLabels converts label map into plain string
func FormatLabels(labelMap map[string]string) string {
l := Set(labelMap).String()
if l == "" {

View File

@ -673,7 +673,7 @@ func (p *Parser) parseRequirement() (*Requirement, error) {
}
// parseKeyAndInferOperator parse literals.
// parseKeyAndInferOperator parses literals.
// in case of no operator '!, in, notin, ==, =, !=' are found
// the 'exists' operator is inferred
func (p *Parser) parseKeyAndInferOperator() (string, selection.Operator, error) {