Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix typo: fix comment for func ParseNodesString
Browse files Browse the repository at this point in the history
Signed-off-by: Guangwen Feng <[email protected]>
  • Loading branch information
Guangwen Feng committed Jan 7, 2020
1 parent 7894da1 commit a432eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfget/config/supernode_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func ParseNodesString(value string) ([]*NodeWight, error) {
return ParseNodesSlice(strings.Split(value, ","))
}

// ParseNodesString parses the value in string slice type to []*NodeWight.
// ParseNodesSlice parses the value in string slice type to []*NodeWight.
func ParseNodesSlice(value []string) ([]*NodeWight, error) {
nodeWightSlice := make([]*NodeWight, 0)
weightKey := make([]int, 0)
Expand Down

0 comments on commit a432eda

Please sign in to comment.