mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 15:47:01 +08:00
all: quieten vet for unkeyed composite literals in test code
This commit is contained in:

committed by
Dan Kortschak

parent
3f94af49e6
commit
70492dcef1
@@ -27,7 +27,7 @@ func (e *edgeWithPorts) ToPort() (string, string) {
|
||||
func ExamplePorter() {
|
||||
g := simple.NewUndirectedGraph()
|
||||
g.SetEdge(&edgeWithPorts{
|
||||
Edge: simple.Edge{simple.Node(1), simple.Node(0)},
|
||||
Edge: simple.Edge{F: simple.Node(1), T: simple.Node(0)},
|
||||
fromPort: "p1",
|
||||
toPort: "p2",
|
||||
})
|
||||
|
Reference in New Issue
Block a user