depgraph: fmt

This commit is contained in:
Mitchell Hashimoto 2014-05-25 18:05:04 -07:00
parent 5d40725139
commit 87b3046d2a
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ func (g *Graph) String() string {
" %s -> %s\n",
dep.Source,
dep.Target))
}
}
for _, n := range g.Nouns {
buf.WriteString(fmt.Sprintf("%s\n", n.Name))

View File

@ -62,9 +62,9 @@ c -> d
c -> e`)
g := &Graph{
Name: "Test",
Name: "Test",
Nouns: NounMapToList(nodes),
Root: nodes["a"],
Root: nodes["a"],
}
actual := g.String()