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:
parent
5fa07014a6
commit
de3ef64f48
@ -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)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user