We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 514b82b commit 6e37f39Copy full SHA for 6e37f39
src/compiler/scala/tools/util/StringOps.scala
@@ -55,7 +55,7 @@ trait StringOps {
55
else Some(str take idx, str drop (if (doDropIndex) idx + 1 else idx))
56
57
def splitLeft(str: String, ch: Char): Option[(String, String)] = {
58
- splitAt(str, str.indexOf(' '), true)
+ splitAt(str, str.indexOf(ch), true)
59
}
60
61
/** Returns a string meaning "n elements".
0 commit comments