Skip to content

Commit

Permalink
corrected comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Sep 20, 2023
1 parent 4c4004a commit 39c7149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion links/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ var _ yaml.Unmarshaler = (*LinkDefinition)(nil)
// UnmarshalYAML deserializes links passed via topology file into LinkDefinition struct.
// It supports both the brief and specific link type notations.
func (ld *LinkDefinition) UnmarshalYAML(unmarshal func(interface{}) error) error {
// avoid recursion used only need to unmarshal the type field.
// struct to avoid recursion when unmarshalling
// used only to unmarshal the type field.
var a struct {
Type string `yaml:"type"`
}
Expand Down
2 changes: 1 addition & 1 deletion links/link_veth.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type LinkVEthRaw struct {
Endpoints []*EndpointRaw `yaml:"endpoints"`
}

// ToLinkBriefRaw converts the raw link into a LinkConfig.
// ToLinkBriefRaw converts the raw link into a LinkBriefRaw.
func (r *LinkVEthRaw) ToLinkBriefRaw() *LinkBriefRaw {
lc := &LinkBriefRaw{
Endpoints: []string{},
Expand Down

0 comments on commit 39c7149

Please sign in to comment.