Commit d12d012a authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #39330 from foolusion/fix-labels-Parse-go-doc

Automatic merge from submit-queue pkg/labels: fix the godoc for Parse() previously the formatting was broken for labels.Parse() function. I fixed the spacing so it will format correctly for the generated go docs. There was also a dangling "]" at the end of the first line so i deleted it. **What this PR does / why we need it**: This fixes a formatting issue with the generated go documentation. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents ee47db8c 5e128072
...@@ -728,15 +728,16 @@ func (p *Parser) parseExactValue() (sets.String, error) { ...@@ -728,15 +728,16 @@ func (p *Parser) parseExactValue() (sets.String, error) {
// as they parse different selectors with different syntaxes. // as they parse different selectors with different syntaxes.
// The input will cause an error if it does not follow this form: // The input will cause an error if it does not follow this form:
// //
// <selector-syntax> ::= <requirement> | <requirement> "," <selector-syntax> ] // <selector-syntax> ::= <requirement> | <requirement> "," <selector-syntax>
// <requirement> ::= [!] KEY [ <set-based-restriction> | <exact-match-restriction> ] // <requirement> ::= [!] KEY [ <set-based-restriction> | <exact-match-restriction> ]
// <set-based-restriction> ::= "" | <inclusion-exclusion> <value-set> // <set-based-restriction> ::= "" | <inclusion-exclusion> <value-set>
// <inclusion-exclusion> ::= <inclusion> | <exclusion> // <inclusion-exclusion> ::= <inclusion> | <exclusion>
// <exclusion> ::= "notin" // <exclusion> ::= "notin"
// <inclusion> ::= "in" // <inclusion> ::= "in"
// <value-set> ::= "(" <values> ")" // <value-set> ::= "(" <values> ")"
// <values> ::= VALUE | VALUE "," <values> // <values> ::= VALUE | VALUE "," <values>
// <exact-match-restriction> ::= ["="|"=="|"!="] VALUE // <exact-match-restriction> ::= ["="|"=="|"!="] VALUE
//
// KEY is a sequence of one or more characters following [ DNS_SUBDOMAIN "/" ] DNS_LABEL. Max length is 63 characters. // KEY is a sequence of one or more characters following [ DNS_SUBDOMAIN "/" ] DNS_LABEL. Max length is 63 characters.
// VALUE is a sequence of zero or more characters "([A-Za-z0-9_-\.])". Max length is 63 characters. // VALUE is a sequence of zero or more characters "([A-Za-z0-9_-\.])". Max length is 63 characters.
// Delimiter is white space: (' ', '\t') // Delimiter is white space: (' ', '\t')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment