Skip to content

Commit 5f5c2d6

Browse files
authored
Merge pull request #75 from ZevEisenberg/patch-1
Use let instead of var to eliminate warning
2 parents c629316 + 61a64d3 commit 5f5c2d6

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)