1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Map using Hash.init.

This commit is contained in:
Rob Rix 2015-09-30 12:40:36 -04:00
parent 5fa07014a6
commit de3ef64f48

View File

@ -178,7 +178,7 @@ extension Syntax where Recur: AlgebraicHashable {
case let .Leaf(n):
return Hash("Leaf", Hash(n))
case let .Branch(vs):
return Hash("Branch", .Sequence(vs.map { $0.hash }))
return Hash("Branch", .Sequence(vs.map(Hash.init)))
}
}
}