1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Fix the usage doc and code desc

Signed-off-by: Marcin Franczyk <marcin0franczyk@gmail.com>
This commit is contained in:
Marcin Franczyk 2024-12-02 12:38:01 +01:00
parent cd52785427
commit c9f2954021
No known key found for this signature in database
GPG key ID: F9AC05762F39A284
2 changed files with 2 additions and 2 deletions

View file

@ -306,7 +306,7 @@ type MatchExpression struct {
IsMatch bool `json:"-"`
}
// Override MarshalJSON to hide the IsMatch field,
// MarshalJSON to hide the IsMatch field,
// preventing users from accessing it and avoiding potential API confusion.
// This field is returned only after rule processing to indicate if the expression matched the host.
func (m *MatchExpression) MarshalJSON() ([]byte, error) {

View file

@ -54,7 +54,7 @@ the host.
- **description** - *string*
This OPTIONAL property provides a brief description of a compatibility set.
### Example
#### Example
```yaml
version: v1alpha1