Skip to content

Commit 61a64d3

Browse files
authored
Use let instead of var to eliminate warning.
1 parent c629316 commit 61a64d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftGraph/Graph.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extension Graph {
4242

4343
/// Returns a list of all the edges, undirected edges are only appended once.
4444
public func edgeList() -> [E] {
45-
var edges = self.edges
45+
let edges = self.edges
4646
var edgeList = [E]()
4747
for i in edges.indices {
4848
let edgesForVertex = edges[i]

0 commit comments

Comments
 (0)