Skip to content

Commit 60108d1

Browse files
committed
Fix typo in doc comment
1 parent 6972d35 commit 60108d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftGraph/Graph.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ extension Graph {
346346
/// - parameter fromIndex: the index of the starting vertex
347347
/// - parameter toIndex: the index of the destination vertex
348348
/// - parameter visited: a set of vertex indices which will be considered to have been visited already
349-
/// - returns: the number of paths that exist going from the start to the destinatin
349+
/// - returns: the number of paths that exist going from the start to the destination
350350
public func countPaths(fromIndex startIndex: Int, toIndex endIndex: Int, visited: inout Set<Int>) -> Int {
351351
if startIndex == endIndex { return 1 }
352352
visited.insert(startIndex)
@@ -365,7 +365,7 @@ extension Graph {
365365
/// - parameter toIndex: the index of the destination vertex
366366
/// - parameter visited: a set of vertex indices which will be considered to have been visited already
367367
/// - parameter reachability: a dictionary mapping vertex indices to a Boolean indicating whether a path exists (`true`) or does not exist (`false`) from that vertex to the destination
368-
/// - returns: the number of paths that exist going from the start to the destinatin
368+
/// - returns: the number of paths that exist going from the start to the destination
369369
public func countPaths(fromIndex startIndex: Int,
370370
toIndex endIndex: Int,
371371
visited: inout Set<Int>,

0 commit comments

Comments
 (0)