Swift语法错误的问题求大神讲解

import Foundation

let useInput = "To write the code for class , you must provide three chunks or sentions of code"
var OutputCount = 0
for chares in useInput {
switch chares {
case "a","e","i","o","u":
continue
default:
OutputCount++
}
}
print(String(OutputCount))

提示错误:
type string does not conform to protocol sequencetype

请问如何修改呀?
这是书上的源代码呀,难道是Swift语法又修改了?

swift 2.0改了,你看的书太旧了。

http://zhidao.baidu.com/link?url=wrf5DyWHKgjy9wr7RXckiPYMm4_Sz6AyGXioOhyrT8gLdbaVzeRRJCRookcTODrQtnroWah-R9Vgt-7osyj4LIjkeplVwAE3ZvzT-jQVIVa

swift 2.0改了,你看的书太旧了。

http://zhidao.baidu.com/link?url=wrf5DyWHKgjy9wr7RXckiPYMm4_Sz6AyGXioOhyrT8gLdbaVzeRRJCRookcTODrQtnroWah-R9Vgt-7osyj4LIjkeplVwAE3ZvzT-jQVIVa