ソースを参照

Update comment for compareNodes

Raul Silvera 9 年 前
コミット
ca80a12349
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2
    0
      internal/graph/graph.go

+ 2
- 0
internal/graph/graph.go ファイルの表示

@@ -825,6 +825,8 @@ func (ns Nodes) Sort(o NodeOrder) error {
825 825
 	return nil
826 826
 }
827 827
 
828
+// compareNodes compares two nodes to provide a deterministic ordering
829
+// between them. Two nodes cannot have the same Node.Info value.
828 830
 func compareNodes(l, r *Node) bool {
829 831
 	return fmt.Sprint(l.Info) < fmt.Sprint(r.Info)
830 832
 }