mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Switch on the right parameter.
This commit is contained in:
parent
c6ad7e3df2
commit
a646f03748
@ -11,7 +11,7 @@ struct UnannotatedTerm {
|
||||
let keyed = UnannotatedTerm.keyed
|
||||
let fixed = UnannotatedTerm.fixed
|
||||
return term.cata {
|
||||
switch $0 {
|
||||
switch $1 {
|
||||
case let .Leaf(s):
|
||||
return s
|
||||
case let .Indexed(s):
|
||||
@ -30,7 +30,7 @@ struct UnannotatedTerm {
|
||||
let fixed = UnannotatedTerm.fixed
|
||||
|
||||
return term.cata {
|
||||
switch $0 {
|
||||
switch $1 {
|
||||
case let .Leaf(s):
|
||||
return Cofree(0..<s.characters.count, .Leaf(s))
|
||||
case let .Indexed(i):
|
||||
|
Loading…
Reference in New Issue
Block a user