Skip to content

Commit

Permalink
Merge pull request #75 from ZevEisenberg/patch-1
Browse files Browse the repository at this point in the history
Use let instead of var to eliminate warning
  • Loading branch information
davecom authored Sep 13, 2019
2 parents c629316 + 61a64d3 commit 5f5c2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftGraph/Graph.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension Graph {

/// Returns a list of all the edges, undirected edges are only appended once.
public func edgeList() -> [E] {
var edges = self.edges
let edges = self.edges
var edgeList = [E]()
for i in edges.indices {
let edgesForVertex = edges[i]
Expand Down

0 comments on commit 5f5c2d6

Please sign in to comment.