1
1
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:
Rob Rix 2015-11-02 18:11:51 -05:00
parent c6ad7e3df2
commit a646f03748

View File

@ -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):