Skip to content

Commit df304c3

Browse files
committed
minor swift fix
1 parent 089e724 commit df304c3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/swift/sequential/graph/bfs/BreadthFirstTraversal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func bfs<T>(in graph: Graph<T>, withRoot root: T) -> [T] {
2323
}
2424

2525

26-
func bfsMain() {
26+
func mainBfs() {
2727
let graph = [
2828
"you": ["alice", "bob", "clair"],
2929
"alice": ["peggy"],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bfsMain()
1+
mainBfs()

src/swift/sequential/graph/dfs/IterativeBreadthFirstTraversal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func dfs<T>(in graph: Graph<T>, withRoot root: T) -> [T] {
2121
}
2222

2323

24-
func dfsMain() {
24+
func mainDfs() {
2525
let graph = [
2626
"you": ["alice", "bob", "clair"],
2727
"alice": ["peggy"],

src/swift/sequential/graph/dfs/RecursiveBreadthFirstTraversal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func dfs<T>(in graph: Graph<T>, withRoot root: T) -> [T] {
2323
}
2424

2525

26-
func dfsMain() {
26+
func mainDfs() {
2727
let graph = [
2828
"you": ["alice", "bob", "clair"],
2929
"alice": ["peggy"],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dfsMain()
1+
mainDfs()

0 commit comments

Comments
 (0)