Chore: fix typo (#1017)

This commit is contained in:
kongminhao
2020-10-14 19:56:02 +08:00
committed by GitHub
parent bc52f8e4fd
commit 8c3e2a7559
8 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@ func proxyGroupsDagSort(groupsConfig []map[string]interface{}) error {
indegree int
// topological order
topo int
// the origional data in `groupsConfig`
// the original data in `groupsConfig`
data map[string]interface{}
// `outdegree` and `from` are used in loop locating
outdegree int
@ -65,7 +65,7 @@ func proxyGroupsDagSort(groupsConfig []map[string]interface{}) error {
index := 0
queue := make([]string, 0)
for name, node := range graph {
// in the begning, put nodes that have `node.indegree == 0` into queue.
// in the beginning, put nodes that have `node.indegree == 0` into queue.
if node.indegree == 0 {
queue = append(queue, name)
}