上のエラーここで前のXcode-8スウィフトコールだSwift3への自動アップグレードを使用して...「コレクション対応...」スウィフト3アップグレード
func gappizeAtDoubleNewlines()
{
let t = self.text!
var index = t.startIndex
var follow = index.advancedBy(1)
for i in 0 ..< (t.characters.count-4)
{
let r = index ... follow
if (t.substringWithRange(r) == "\n\n")
{ alterLineGapHere(i) }
index = index.advancedBy(1)
follow = index.advancedBy(1)
}
}
が、私は
...これらのエラーを得ましたテキストで、Swift3内の溶液は何
func gappizeAtDoubleNewlines()
{
let t = self.text!
var index = t.startIndex
var follow = <#T##Collection corresponding to `index`##Collection#>.index(index, offsetBy: 1)
for i in 0 ..< (t.characters.count-4)
{
let r = index ... follow
if (t.substring(with: r) == "\n\n")
{ alterLineGapHere(i) }
index = <#T##Collection corresponding to `index`##Collection#>.index(index, offsetBy: 1)
follow = <#T##Collection corresponding to `index`##Collection#>.index(index, offsetBy: 1)
}
}
?
@ハミッシュ - ありがとうございました。 – Fattie
確かなこと - 私は誤ってコメントに質問に答える習慣を持っています:) – Hamish